Exception: RegApi2::ContractError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- RegApi2::ContractError
- Defined in:
- lib/reg_api2/contract_error.rb
Overview
API Contract Error. Raised when input parameters doesn't pass Ruby client tests.
Instance Attribute Summary (collapse)
-
- (Array<String>) fields
readonly
Wrong fields.
Instance Method Summary (collapse)
-
- (ContractError) initialize(message, fields = [])
constructor
A new instance of ContractError.
Constructor Details
- (ContractError) initialize(message, fields = [])
Returns a new instance of ContractError
10 11 12 13 14 15 |
# File 'lib/reg_api2/contract_error.rb', line 10 def initialize , fields = [] super fields = [] if fields.nil? fields = [ fields ] unless fields.kind_of?(Array) @fields = fields end |
Instance Attribute Details
- (Array<String>) fields (readonly)
Returns Wrong fields.
8 9 10 |
# File 'lib/reg_api2/contract_error.rb', line 8 def fields @fields end |