Exception: MessageMediaSigningKeys::GetSignatureKeyList400ResponseException

Inherits:
APIException
  • Object
show all
Defined in:
lib/message_media_signing_keys/exceptions/get_signature_key_list400_response_exception.rb

Overview

Get signature key list 400 response class.

Instance Attribute Summary collapse

Attributes inherited from APIException

#context, #response_code

Instance Method Summary collapse

Constructor Details

#initialize(reason, context) ⇒ GetSignatureKeyList400ResponseException

The constructor.

Parameters:

  • The (String)

    reason for raising an exception.

  • The (HttpContext)

    HttpContext of the API call.



18
19
20
21
22
# File 'lib/message_media_signing_keys/exceptions/get_signature_key_list400_response_exception.rb', line 18

def initialize(reason, context)
  super(reason, context)
  hash = APIHelper.json_deserialize(@context.response.raw_body)
  unbox(hash)
end

Instance Attribute Details

#detailsList of String

TODO: Write general description for this method

Returns:



13
14
15
# File 'lib/message_media_signing_keys/exceptions/get_signature_key_list400_response_exception.rb', line 13

def details
  @details
end

#messageString

TODO: Write general description for this method

Returns:



9
10
11
# File 'lib/message_media_signing_keys/exceptions/get_signature_key_list400_response_exception.rb', line 9

def message
  @message
end

Instance Method Details

#unbox(hash) ⇒ Object

Populates this object by extracting properties from a hash. response body.

Parameters:

  • The (Hash)

    deserialized response sent by the server in the



27
28
29
30
# File 'lib/message_media_signing_keys/exceptions/get_signature_key_list400_response_exception.rb', line 27

def unbox(hash)
  @message = hash['message']
  @details = hash['details']
end