Exception: Marley::ValidationError
- Inherits:
-
MarleyError
- Object
- StandardError
- MarleyError
- Marley::ValidationError
- Defined in:
- lib/marley/errors.rb
Instance Method Summary collapse
-
#initialize(errors) ⇒ ValidationError
constructor
A new instance of ValidationError.
- #log_error ⇒ Object
Methods inherited from MarleyError
Constructor Details
#initialize(errors) ⇒ ValidationError
Returns a new instance of ValidationError.
22 23 24 |
# File 'lib/marley/errors.rb', line 22 def initialize(errors) self.class.details=errors end |
Instance Method Details
#log_error ⇒ Object
25 26 27 |
# File 'lib/marley/errors.rb', line 25 def log_error $log.error(self.class.details) end |