Exception: MySpace::BadIdentifier

Inherits:
MySpaceException show all
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

Instance Method Summary collapse

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

#identifierObject (readonly)

Returns the value of attribute identifier.



10
11
12
# File 'lib/myspace/exceptions.rb', line 10

def identifier
  @identifier
end

#parameterObject (readonly)

Returns the value of attribute parameter.



10
11
12
# File 'lib/myspace/exceptions.rb', line 10

def parameter
  @parameter
end