Sha256: f869dd764bdf933002197079fa5fd15cd908feeba4ee22be83f1a068fc744f80
Contents?: true
Size: 604 Bytes
Versions: 1
Compression:
Stored size: 604 Bytes
Contents
require_relative './blockscore_error' module BlockScore class ValidationError < BlockscoreError attr_reader :http_status attr_reader :error_code attr_reader :param @@http_status = 400 def initialize(message=nil, json_body=nil, error_type=nil, param=nil, error_code=nil) super(message, json_body, @@http_status, error_type) @error_code = error_code @param = param end def to_s s = "Status: #{@@http_status}, Type: #{@error_type}, Param: #{@param}, " s += "Code: #{@error_code}, Message: #{@message}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blockscore-2.0.0 | lib/blockscore/error/validation_error.rb |