Exception: Mortymer::Contract::ContractError
- Inherits:
-
StandardError
- Object
- StandardError
- Mortymer::Contract::ContractError
- Defined in:
- lib/mortymer/contract.rb
Overview
Exception raised when an error occours in a contract
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(errors) ⇒ ContractError
constructor
A new instance of ContractError.
Constructor Details
#initialize(errors) ⇒ ContractError
Returns a new instance of ContractError.
20 21 22 23 |
# File 'lib/mortymer/contract.rb', line 20 def initialize(errors) super @errors = errors end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
18 19 20 |
# File 'lib/mortymer/contract.rb', line 18 def errors @errors end |