Exception: OcflTools::Errors::ValidationError
- Inherits:
-
StandardError
- Object
- StandardError
- OcflTools::Errors::ValidationError
- Defined in:
- lib/ocfl_tools/ocfl_errors.rb
Overview
See this for a nice model. github.com/ryanb/cancan/blob/master/lib/cancan/exceptions.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#details ⇒ Object
Returns the value of attribute details.
-
#msg ⇒ Object
Returns the value of attribute msg.
Instance Method Summary collapse
-
#initialize(msg: "A validation error has occured.", details: {}) ⇒ ValidationError
constructor
A new instance of ValidationError.
Constructor Details
#initialize(msg: "A validation error has occured.", details: {}) ⇒ ValidationError
Returns a new instance of ValidationError.
8 9 10 11 |
# File 'lib/ocfl_tools/ocfl_errors.rb', line 8 def initialize(msg: "A validation error has occured.", details: {} ) @msg = msg @details = details end |
Instance Attribute Details
#details ⇒ Object
Returns the value of attribute details.
6 7 8 |
# File 'lib/ocfl_tools/ocfl_errors.rb', line 6 def details @details end |
#msg ⇒ Object
Returns the value of attribute msg.
7 8 9 |
# File 'lib/ocfl_tools/ocfl_errors.rb', line 7 def msg @msg end |