Exception: MySpace::BadIdentifier
- Inherits:
-
MySpaceException
- Object
- Exception
- MySpaceException
- MySpace::BadIdentifier
- Defined in:
- lib/myspace/exceptions.rb
Overview
You tried to pass an invalid value as a parameter to a REST call. The REST error responses are not very elucidating, so we try to catch these before sending them off.
Instance Attribute Summary collapse
-
#identifier ⇒ Object
readonly
Returns the value of attribute identifier.
-
#parameter ⇒ Object
readonly
Returns the value of attribute parameter.
Instance Method Summary collapse
-
#initialize(parameter, identifier) ⇒ BadIdentifier
constructor
A new instance of BadIdentifier.
Constructor Details
#initialize(parameter, identifier) ⇒ BadIdentifier
Returns a new instance of BadIdentifier.
11 12 13 14 |
# File 'lib/myspace/exceptions.rb', line 11 def initialize(parameter, identifier) @parameter = parameter @identifier = identifier end |
Instance Attribute Details
#identifier ⇒ Object (readonly)
Returns the value of attribute identifier.
10 11 12 |
# File 'lib/myspace/exceptions.rb', line 10 def identifier @identifier end |
#parameter ⇒ Object (readonly)
Returns the value of attribute parameter.
10 11 12 |
# File 'lib/myspace/exceptions.rb', line 10 def parameter @parameter end |