Class: WaCloudApi::Message::Error

Inherits:
Struct
  • Object
show all
Defined in:
lib/wa_cloud_api/message/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#codeObject

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



5
6
7
# File 'lib/wa_cloud_api/message/error.rb', line 5

def code
  @code
end

#error_dataObject

Returns the value of attribute error_data

Returns:

  • (Object)

    the current value of error_data



5
6
7
# File 'lib/wa_cloud_api/message/error.rb', line 5

def error_data
  @error_data
end

#error_subcodeObject

Returns the value of attribute error_subcode

Returns:

  • (Object)

    the current value of error_subcode



5
6
7
# File 'lib/wa_cloud_api/message/error.rb', line 5

def error_subcode
  @error_subcode
end

#fbtrace_idObject

Returns the value of attribute fbtrace_id

Returns:

  • (Object)

    the current value of fbtrace_id



5
6
7
# File 'lib/wa_cloud_api/message/error.rb', line 5

def fbtrace_id
  @fbtrace_id
end

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



5
6
7
# File 'lib/wa_cloud_api/message/error.rb', line 5

def message
  @message
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



5
6
7
# File 'lib/wa_cloud_api/message/error.rb', line 5

def type
  @type
end

Instance Method Details

#handle_errorObject

Raises:



7
8
9
# File 'lib/wa_cloud_api/message/error.rb', line 7

def handle_error
  raise WaCloudApi::Error, error_message
end