Sha256: 5e7a7684591cd183e897319584d87c4779f43db1000e7b01a27f96a0c239c3d3
Contents?: true
Size: 629 Bytes
Versions: 7
Compression:
Stored size: 629 Bytes
Contents
require File.join(File.dirname(__FILE__), '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
7 entries across 7 versions & 1 rubygems