Exception: Minato::Utils::SerializableError
- Inherits:
-
StandardError
- Object
- StandardError
- Minato::Utils::SerializableError
- Defined in:
- lib/minato/utils/exception.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(object) ⇒ SerializableError
constructor
A new instance of SerializableError.
Constructor Details
#initialize(object) ⇒ SerializableError
Returns a new instance of SerializableError.
10 11 12 13 14 15 |
# File 'lib/minato/utils/exception.rb', line 10 def initialize(object) @id = self.class.to_s.underscore @body = object.body @code = object.code super end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
8 9 10 |
# File 'lib/minato/utils/exception.rb', line 8 def body @body end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
8 9 10 |
# File 'lib/minato/utils/exception.rb', line 8 def code @code end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
8 9 10 |
# File 'lib/minato/utils/exception.rb', line 8 def id @id end |