Exception: Fanforce::Error::Forbidden

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

Overview

Current API key does not allow access

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



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

def code; 403 end

#default_error_codeObject



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

def default_error_code; :weak_api_key end

#default_messageObject



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

def default_message; 'API Key Forbids Access' end

#valid_error_codesObject



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

def valid_error_codes; [:weak_api_key] end