Exception: Fanforce::Error::BadRequest
Overview
Request is missing something or invalid
Instance Attribute Summary
#env, #public_errors
Instance Method Summary
collapse
#curl_command, #for, #format_error, #format_errors, #initialize
Instance Method Details
#code ⇒ Object
48
|
# File 'lib/fanforce/errors/errors.rb', line 48
def code; 400 end
|
#default_error_code ⇒ Object
51
|
# File 'lib/fanforce/errors/errors.rb', line 51
def default_error_code; :unknown end
|
#default_message ⇒ Object
49
|
# File 'lib/fanforce/errors/errors.rb', line 49
def default_message; 'Bad Request' end
|
#valid_error_codes ⇒ Object
50
|
# File 'lib/fanforce/errors/errors.rb', line 50
def valid_error_codes; [:blank_field, :missing_field, :invalid_association, :invalid_field] end
|