Is there a built in .NET exception that indicates an illegal object state?

InvalidOperationException maybe?

The exception that is thrown when a method call is invalid for the object’s current state.

Leave a Comment