Exception: Serega::AttributeNotExist
- Inherits:
-
SeregaError
- Object
- StandardError
- SeregaError
- Serega::AttributeNotExist
- Defined in:
- lib/serega/errors.rb
Overview
Raised when serializer is initiated using not existing attribute
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#serializer ⇒ Object
readonly
Returns the value of attribute serializer.
Instance Method Summary collapse
-
#initialize(message = nil, serializer = nil, attributes = nil) ⇒ AttributeNotExist
constructor
A new instance of AttributeNotExist.
Constructor Details
#initialize(message = nil, serializer = nil, attributes = nil) ⇒ AttributeNotExist
Returns a new instance of AttributeNotExist.
17 18 19 20 21 |
# File 'lib/serega/errors.rb', line 17 def initialize( = nil, serializer = nil, attributes = nil) super() @serializer = serializer @attributes = attributes end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
15 16 17 |
# File 'lib/serega/errors.rb', line 15 def attributes @attributes end |
#serializer ⇒ Object (readonly)
Returns the value of attribute serializer.
15 16 17 |
# File 'lib/serega/errors.rb', line 15 def serializer @serializer end |