Sha256: d30de200fdaa94112c884ffd4458303d9f55dcc6b21efa5308859d29de42bbc9

Contents?: true

Size: 995 Bytes

Versions: 25

Compression:

Stored size: 995 Bytes

Contents

# bandwidth
#
# This file was automatically generated by APIMATIC v2.0
# ( https://apimatic.io ).

module Bandwidth
  # MessagingException class.
  class MessagingException < APIException
    # TODO: Write general description for this method
    # @return [String]
    attr_accessor :type

    # TODO: Write general description for this method
    # @return [String]
    attr_accessor :description

    # The constructor.
    # @param [String] The reason for raising an exception.
    # @param [HttpResponse] The HttpReponse of the API call.
    def initialize(reason, response)
      super(reason, response)
      hash = APIHelper.json_deserialize(@response.raw_body)
      unbox(hash)
    end

    # Populates this object by extracting properties from a hash.
    # @param [Hash] The deserialized response sent by the server in the
    # response body.
    def unbox(hash)
      @type = hash['type']
      @description = hash['description']
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
bandwidth-sdk-8.0.0 lib/bandwidth/messaging_lib/messaging/exceptions/messaging_exception.rb
bandwidth-sdk-7.1.0 lib/bandwidth/messaging_lib/messaging/exceptions/messaging_exception.rb
bandwidth-sdk-7.0.0 lib/bandwidth/messaging_lib/messaging/exceptions/messaging_exception.rb
bandwidth-sdk-6.2.0 lib/bandwidth/messaging_lib/messaging/exceptions/messaging_exception.rb
bandwidth-sdk-6.1.0 lib/bandwidth/messaging_lib/messaging/exceptions/messaging_exception.rb
bandwidth-sdk-6.0.0 lib/bandwidth/messaging_lib/messaging/exceptions/messaging_exception.rb
bandwidth-sdk-5.0.0 lib/bandwidth/messaging_lib/messaging/exceptions/messaging_exception.rb
bandwidth-sdk-4.0.0 lib/bandwidth/messaging_lib/messaging/exceptions/messaging_exception.rb
bandwidth-sdk-3.13.2 lib/bandwidth/messaging_lib/messaging/exceptions/messaging_exception.rb
bandwidth-sdk-3.13.1 lib/bandwidth/messaging_lib/messaging/exceptions/messaging_exception.rb
bandwidth-sdk-3.13.0 lib/bandwidth/messaging_lib/messaging/exceptions/messaging_exception.rb
bandwidth-sdk-3.12.1 lib/bandwidth/messaging_lib/messaging/exceptions/messaging_exception.rb
bandwidth-sdk-3.12.0 lib/bandwidth/messaging_lib/messaging/exceptions/messaging_exception.rb
bandwidth-sdk-3.11.0 lib/bandwidth/messaging_lib/messaging/exceptions/messaging_exception.rb
bandwidth-sdk-3.10.0 lib/bandwidth/messaging_lib/messaging/exceptions/messaging_exception.rb
bandwidth-sdk-3.9.0 lib/bandwidth/messaging_lib/messaging/exceptions/messaging_exception.rb
bandwidth-sdk-3.8.0 lib/bandwidth/messaging_lib/messaging/exceptions/messaging_exception.rb
bandwidth-sdk-3.7.0 lib/bandwidth/messaging_lib/messaging/exceptions/messaging_exception.rb
bandwidth-sdk-3.6.0 lib/bandwidth/messaging_lib/messaging/exceptions/messaging_exception.rb
bandwidth-sdk-3.5.0 lib/bandwidth/messaging_lib/messaging/exceptions/messaging_exception.rb