Exception: RestModel::SourceError
- Inherits:
-
StandardError
- Object
- StandardError
- RestModel::SourceError
- Defined in:
- lib/rest_model/errors.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(errors) ⇒ SourceError
constructor
A new instance of SourceError.
- #message ⇒ Object
Constructor Details
#initialize(errors) ⇒ SourceError
Returns a new instance of SourceError.
8 9 10 |
# File 'lib/rest_model/errors.rb', line 8 def initialize(errors) @errors = errors end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
6 7 8 |
# File 'lib/rest_model/errors.rb', line 6 def errors @errors end |
Class Method Details
.exception(errors = {}) ⇒ Object
16 17 18 |
# File 'lib/rest_model/errors.rb', line 16 def self.exception(errors = {}) new(errors) end |
Instance Method Details
#message ⇒ Object
12 13 14 |
# File 'lib/rest_model/errors.rb', line 12 def @errors end |