Exception: Fanforce::Error::Unauthorized

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

Overview

Could not successfully authenticate

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



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

def code; 401 end

#default_error_codeObject



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

def default_error_code; :unauthorized end

#default_messageObject



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

def default_message; 'Unauthorized Request' end

#valid_error_codesObject



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

def valid_error_codes; [:unauthorized, :unknown_login] end