Exception: Mirage::MirageError
- Inherits:
-
Exception
- Object
- Exception
- Mirage::MirageError
- Defined in:
- lib/mirage/client/error.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(message, code) ⇒ MirageError
constructor
A new instance of MirageError.
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 , code super @code = , code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/mirage/client/error.rb', line 3 def code @code end |