ごとではありませんでした
ategotodewārimasendeshita

Noun
Desu Copula

The polite, past negative form of 当て事

1. It was not the case.; It wasn't as expected.; It wasn't what happened.

Past/Perfective
Negative
Polite
Formal Register