Exception: Fanforce::Error::RequestFailed
Overview
Request has correct fields but failed for another reason
Instance Attribute Summary
#env, #public_errors
Instance Method Summary
collapse
#curl_command, #for, #format_error, #format_errors, #initialize
Instance Method Details
#code ⇒ Object
76
|
# File 'lib/fanforce/errors/errors.rb', line 76
def code; 422 end
|
#default_error_code ⇒ Object
79
|
# File 'lib/fanforce/errors/errors.rb', line 79
def default_error_code; :unknown end
|
#default_message ⇒ Object
77
|
# File 'lib/fanforce/errors/errors.rb', line 77
def default_message; 'Request Failed' end
|
#valid_error_codes ⇒ Object
78
|
# File 'lib/fanforce/errors/errors.rb', line 78
def valid_error_codes; [:invalid_data, :record_already_exists, :maxed_capacity] end
|