Exception: Onetime::AccountRequiredError

Inherits:
AuthenticationError show all
Defined in:
lib/onetime/errors.rb

Overview

The operation is only available to an authenticated account. The server reports this as a field/key rather than a status of its own (historically a 400 FormError with field "requires_account"), which made it look like a malformed request body. It is an authentication problem, so it subclasses AuthenticationError; #field is preserved for callers that need it.

Instance Attribute Summary

Attributes inherited from APIError

#body, #code, #entitlement, #error_key, #error_type, #field, #http_status, #response, #retry_after

Method Summary

Methods inherited from APIError

#initialize

Constructor Details

This class inherits a constructor from Onetime::APIError