class Omie::Error
This is the base Omie
exception class. Rescue it if you want to catch any exceptions that your request might raise. In addition to the message, it may receive the response, a RestClient::Response object that can be used to improve the error messages.
Attributes
message[RW]
response[RW]
Public Class Methods
new(message = nil, response = nil)
click to toggle source
Initialize the exception with the message and the request's response and call the {#after_initialize} callback
# File lib/omie/error.rb, line 13 def initialize(message = nil, response = nil) @message = message @response = response after_initialize end
Public Instance Methods
after_initialize()
click to toggle source
Callback to be overridden by underlying classes
# File lib/omie/error.rb, line 20 def after_initialize; end