class TheCaptain::Error::ClientError

Public Class Methods

client_error(class_name, message) click to toggle source
# File lib/the_captain/error/exceptions.rb, line 15
def self.client_error(class_name, message)
  new("It looks like our client raised an #{class_name} error with message:  #{message}")
end
missing_response_object() click to toggle source
# File lib/the_captain/error/exceptions.rb, line 19
def self.missing_response_object
  new("No response was provided prior to decoding."\
      "Ensure that you make a request before attempting to decode the returning messages.")
end