Exception: T2Server::RunStateError
- Inherits:
-
T2ServerError
- Object
- RuntimeError
- T2ServerError
- T2Server::RunStateError
- Defined in:
- lib/t2-server/exceptions.rb
Overview
Raised if an operation is performed on a run when it is in the wrong state. Trying to start a run if it is the finished state would cause this exception to be raised.
Instance Method Summary collapse
-
#initialize(current, need) ⇒ RunStateError
constructor
Create a new RunStateError specifying both the current state and that which is needed to run the operation.
Constructor Details
#initialize(current, need) ⇒ RunStateError
Create a new RunStateError specifying both the current state and that which is needed to run the operation.
196 197 198 199 |
# File 'lib/t2-server/exceptions.rb', line 196 def initialize(current, need) super "The run is in the wrong state (#{current}); it should be " + "'#{need}' to perform that action" end |