Sha256: e979048bf94eeee5300f10cd29eb565dc0294b1c7b98b20cdcd7cea004528ce2
Contents?: true
Size: 583 Bytes
Versions: 1
Compression:
Stored size: 583 Bytes
Contents
# cyn_sms # # This file was automatically generated by APIMATIC v2.0 ( # https://apimatic.io ). module CynSms # Class for exceptions when there is a network error, status code error, etc. class APIException < StandardError attr_reader :context, :response_code # The constructor. # @param [String] The reason for raising an exception. # @param [HttpContext] The HttpContext of the API call. def initialize(reason, context) super(reason) @context = context @response_code = context.response.status_code end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
CynSMS-1.0 | lib/cyn_sms/exceptions/api_exception.rb |