Sha256: 47acb24041134794ddb41d9b9045fdc58b296d001ff1fa0388f3b09c56496c0a
Contents?: true
Size: 652 Bytes
Versions: 19
Compression:
Stored size: 652 Bytes
Contents
module Twilio module REST class TwilioError < StandardError attr_reader :message, :body def initialize(message, body = nil) @message = message @body = body end def to_s "#{@message}: #{@body || 'no body'}" end end class RestError < TwilioError attr_reader :message, :code, :status_code def initialize(message, code, status_code) @message = message @code = code @status_code = status_code end def to_s "[HTTP #{status_code}] #{code} : #{message}" end end class ObsoleteError < StandardError end end end
Version data entries
19 entries across 19 versions & 1 rubygems