Exception: Mirage::MirageError

Inherits:
Exception
  • Object
show all
Defined in:
lib/mirage/client/error.rb

Direct Known Subclasses

InternalServerException

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, code) ⇒ MirageError

Returns a new instance of MirageError.



5
6
7
8
# File 'lib/mirage/client/error.rb', line 5

def initialize message, code
  super message
  @code = message, code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



3
4
5
# File 'lib/mirage/client/error.rb', line 3

def code
  @code
end