An error that is thrown when a method call is invalid for the object's current state.
Initializes a new instance of the InvalidOperationError class.
Optional
The error message. If not specified, a default one will be used.
An error that is thrown when a method call is invalid for the object's current state.