kit-contract edge

Error class
Kit::Contract::Error
View Source

When using contracts on method signatures (through before, after, contract) a Kit::Contract::Error exception is raised when a contract failure happens.


Link to this section Summary ⚠️ Private APIs are currently hidden.

Inheritance: StandardError → Object

Link to this section Instance methods 3 ⚠️ Private APIs are currently hidden.

⚠️ This method is part of a private API. You should avoid using it as it may be removed or be changed in the future.

Display informations about the the contract that failed.

Link to this method

#initialize(contract_errors:, errors:, target:, target_class:, method_name:, method_type:, type:, args:)

View Source RUBYConstructor
⚠️ This method is part of a private API. You should avoid using it as it may be removed or be changed in the future.

Generates an error message that can be displayed.