class BerkeleyLibrary::TIND::API::APIKeyNotSet
Exception raised when the API
key is nil or blank.
NOTE: TIND
incorrectly returns 403 Forbidden in this case, but we don't even bother to ask, we just simulate a 401.
Public Class Methods
new(endpoint_uri, params)
click to toggle source
@param endpoint_uri [URI] the endpoint URI @param params [Hash, nil] the query parameters
Calls superclass method
BerkeleyLibrary::TIND::API::APIException::new
# File lib/berkeley_library/tind/api/api_exception.rb, line 103 def initialize(endpoint_uri, params) request_str = API.format_request(endpoint_uri, params) super("#{request_str} failed; API key not set", status_code: 401) end