What exception should I throw if I encounter an illegal state – for instance, an initialization method that should only be called once being called a second time? I don’t really see any built-in exception that makes sense. This seems like something that should be in the framework – am I not poking in the right spot?
Share
InvalidOperationException maybe?