Exception: Aggregates::CommandValidationError
- Inherits:
-
StandardError
- Object
- StandardError
- Aggregates::CommandValidationError
- Defined in:
- lib/aggregates/command_validation_error.rb
Overview
Wraps a hash of errors when validating a command as an Exception.
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(errors, msg = nil) ⇒ CommandValidationError
constructor
A new instance of CommandValidationError.
Constructor Details
#initialize(errors, msg = nil) ⇒ CommandValidationError
Returns a new instance of CommandValidationError.
8 9 10 11 12 |
# File 'lib/aggregates/command_validation_error.rb', line 8 def initialize(errors, msg = nil) super(msg) @errors = errors end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
6 7 8 |
# File 'lib/aggregates/command_validation_error.rb', line 6 def errors @errors end |