Exception: Fanforce::Error::BadRequest

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

Overview

Request is missing something or invalid

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



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

def code; 400 end

#default_error_codeObject



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

def default_error_code; :unknown end

#default_messageObject



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

def default_message; 'Bad Request' end

#valid_error_codesObject



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

def valid_error_codes; [:blank_field, :missing_field, :invalid_association, :invalid_field] end