Sha256: dbd1d36e562d2471609e24d02878f03dfdb86ec6c269beb71eeaebcefb4cbfde
Contents?: true
Size: 826 Bytes
Versions: 8
Compression:
Stored size: 826 Bytes
Contents
module ZuoraAPI module Exceptions class Error < StandardError; end class AuthorizationNotPerformed < Error; end class ZuoraAPISessionError < Error attr_reader :code, :response attr_writer :default_message def initialize(message = nil) @message = message @default_message = "Error with Zuora Session." end def to_s @message || @default_message end end class ZuoraAPIError < Error attr_reader :code, :response attr_writer :default_message def initialize(message = nil,response=nil, code =nil) @code = code @message = message @response = response @default_message = "Error communicating with Zuora." end def to_s @message || @default_message end end end end
Version data entries
8 entries across 8 versions & 1 rubygems