Class: LedgerSync::Domains::ValidationError
- Inherits:
-
Error::OperationError
- Object
- Error::OperationError
- LedgerSync::Domains::ValidationError
- Defined in:
- lib/ledger_sync/domains.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(operation:, errors:) ⇒ ValidationError
constructor
A new instance of ValidationError.
- #inspect ⇒ Object
Constructor Details
#initialize(operation:, errors:) ⇒ ValidationError
Returns a new instance of ValidationError.
39 40 41 42 43 |
# File 'lib/ledger_sync/domains.rb', line 39 def initialize(operation:, errors:) @errors = errors = 'Operation arguments are invalid. Please check your errors.' super(message: , operation: operation) end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
37 38 39 |
# File 'lib/ledger_sync/domains.rb', line 37 def errors @errors end |
Instance Method Details
#inspect ⇒ Object
45 46 47 |
# File 'lib/ledger_sync/domains.rb', line 45 def inspect "#<#{self.class}: #{} (errors: #{errors.inspect})>" end |