Exception: Fanforce::Error::RequestFailed

Inherits:
Fanforce::Error show all
Defined in:
lib/fanforce/errors/errors.rb

Overview

Request has correct fields but failed for another reason

Instance Attribute Summary

Attributes inherited from Fanforce::Error

#env, #public_errors

Instance Method Summary collapse

Methods inherited from Fanforce::Error

#curl_command, #for, #format_error, #format_errors, #initialize

Constructor Details

This class inherits a constructor from Fanforce::Error

Instance Method Details

#codeObject



76
# File 'lib/fanforce/errors/errors.rb', line 76

def code; 422 end

#default_error_codeObject



79
# File 'lib/fanforce/errors/errors.rb', line 79

def default_error_code; :unknown end

#default_messageObject



77
# File 'lib/fanforce/errors/errors.rb', line 77

def default_message; 'Request Failed' end

#valid_error_codesObject



78
# File 'lib/fanforce/errors/errors.rb', line 78

def valid_error_codes; [:invalid_data, :record_already_exists, :maxed_capacity] end