Sha256: cf017eed68a0857282c1a4203974a18812831e03a6e3f7141ad09f7e334e7a01
Contents?: true
Size: 479 Bytes
Versions: 9
Compression:
Stored size: 479 Bytes
Contents
module Xendit class Errors < StandardError attr_reader :error_code, :error_message, :http_status def initialize(error_code, error_message, http_status) @error_code = error_code @error_message = error_message @http_status = http_status super(message_string) end private def message_string "Xendit API is returning API error. HTTP status #{@http_status}: #{@error_code}. Error message: #{@error_message}" end end end
Version data entries
9 entries across 9 versions & 1 rubygems