Sha256: c93cc9557248588d7a137b6bc7e96852be77ff0560cf6fe98cd20e55e51fe92b

Contents?: true

Size: 239 Bytes

Versions: 11

Compression:

Stored size: 239 Bytes

Contents

module Twilio
  module REST
    class TwilioException < Exception
      def initialize(msg, body = nil)
        @msg = msg
        @body = body
      end

      def to_s
        "#{@msg}: #{@body || 'no body'}"
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
twilio-ruby-5.0.0.rc13 lib/twilio-ruby/framework/exception.rb
twilio-ruby-5.0.0.rc12 lib/twilio-ruby/framework/exception.rb
twilio-ruby-5.0.0.rc11 lib/twilio-ruby/framework/exception.rb
twilio-ruby-5.0.0.rc10 lib/twilio-ruby/framework/exception.rb
twilio-ruby-5.0.0.rc9 lib/twilio-ruby/framework/exception.rb
twilio-ruby-5.0.0.rc8 lib/twilio-ruby/framework/exception.rb
twilio-ruby-5.0.0.rc7 lib/twilio-ruby/framework/exception.rb
twilio-ruby-5.0.0.rc5 lib/twilio-ruby/framework/exception.rb
twilio-ruby-5.0.0.rc4 lib/twilio-ruby/framework/exception.rb
twilio-ruby-5.0.0.rc3 lib/twilio-ruby/framework/exception.rb
twilio-ruby-5.0.0.rc2 lib/twilio-ruby/framework/exception.rb