kit-contract edge
Error
class
Kit::Contract::Error
View Source
Kit::Contract::Error
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.
Link to this section Instance methods 3 ⚠️ Private APIs are currently hidden.
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 SourceGenerates an error message that can be displayed.