Exception: SemaphoreClient::Exceptions::ResponseError
- Defined in:
- lib/semaphore_client/exceptions.rb
Direct Known Subclasses
BadRequest, Conflict, NotAllowed, NotFound, ServerError, Unauthorized, UnprocessableEntity
Instance Attribute Summary collapse
-
#env ⇒ Object
readonly
Returns the value of attribute env.
Instance Method Summary collapse
-
#initialize(env) ⇒ ResponseError
constructor
A new instance of ResponseError.
Constructor Details
#initialize(env) ⇒ ResponseError
Returns a new instance of ResponseError.
10 11 12 13 14 |
# File 'lib/semaphore_client/exceptions.rb', line 10 def initialize(env) @env = env super(env[:message]) end |
Instance Attribute Details
#env ⇒ Object (readonly)
Returns the value of attribute env.
8 9 10 |
# File 'lib/semaphore_client/exceptions.rb', line 8 def env @env end |