Exception: Clever::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Clever::Error
- Defined in:
- lib/clever/error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(code, message) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(code, message) ⇒ Error
Returns a new instance of Error.
4 5 6 7 |
# File 'lib/clever/error.rb', line 4 def initialize code, @code = code @message = end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
2 3 4 |
# File 'lib/clever/error.rb', line 2 def code @code end |
#message ⇒ Object
Returns the value of attribute message.
2 3 4 |
# File 'lib/clever/error.rb', line 2 def @message end |