Exception: Aggregates::CommandValidationError

Inherits:
StandardError
  • Object
show all
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

Instance Method Summary collapse

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

#errorsObject (readonly)

Returns the value of attribute errors.



6
7
8
# File 'lib/aggregates/command_validation_error.rb', line 6

def errors
  @errors
end