Class: Error
- Inherits:
-
Object
- Object
- Error
- Defined in:
- lib/default.rb
Overview
Defined Under Namespace
Classes: Detail
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#detail ⇒ Object
Returns the value of attribute detail.
-
#message ⇒ Object
Returns the value of attribute message.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type = nil, code = nil, message = nil, detail = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(type = nil, code = nil, message = nil, detail = nil) ⇒ Error
Returns a new instance of Error.
1479 1480 1481 1482 1483 1484 |
# File 'lib/default.rb', line 1479 def initialize(type = nil, code = nil, = nil, detail = nil) @type = type @code = code @message = @detail = detail end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
1475 1476 1477 |
# File 'lib/default.rb', line 1475 def code @code end |
#detail ⇒ Object
Returns the value of attribute detail.
1477 1478 1479 |
# File 'lib/default.rb', line 1477 def detail @detail end |
#message ⇒ Object
Returns the value of attribute message.
1476 1477 1478 |
# File 'lib/default.rb', line 1476 def @message end |
#type ⇒ Object
Returns the value of attribute type.
1474 1475 1476 |
# File 'lib/default.rb', line 1474 def type @type end |