Exception: Caution::IllegalStateError
- Inherits:
-
StandardError
- Object
- StandardError
- Caution::IllegalStateError
- Defined in:
- lib/caution/illegal_state_error.rb
Overview
An error to raise when an object or system is in an unsupported state. Inspired by Java’s IllegalStateException (docs.oracle.com/javase/8/docs/api/index.html?java/lang/IllegalStateException.html) and .Net’s InvalidOperationException (docs.microsoft.com/en-us/dotnet/api/system.invalidoperationexception?view=netframework-4.7.2).
Note that this is named IllegalStateError and not IllegalStateException as it inherits from StandardError and all of the classes which inherit from StandardError in the Ruby Standard Library end in Error.