Exception: Castkit::ContractError
- Defined in:
- lib/castkit/error.rb
Overview
Raised during contract validation.
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(msg, context: nil, errors: nil) ⇒ ContractError
constructor
A new instance of ContractError.
Constructor Details
#initialize(msg, context: nil, errors: nil) ⇒ ContractError
Returns a new instance of ContractError.
49 50 51 52 |
# File 'lib/castkit/error.rb', line 49 def initialize(msg, context: nil, errors: nil) super(msg, context: context) @errors = errors || {} end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
47 48 49 |
# File 'lib/castkit/error.rb', line 47 def errors @errors end |