Which time?
Let's take one time, the Declaration of War against the United States in 1941, which Germany claimed it did, because it felt that the US was no longer neutral in the conflict and was supporting the opposited side (Great Britain) as well as fighting against its ally (Japan).