Exception: Basecamp::LimitExceededError

Inherits:
Error
  • Object
show all
Defined in:
lib/basecamp/limit_exceeded_error.rb

Overview

Raised when an account limit blocks the request (HTTP 507) — file storage exhausted, or a webhook ceiling reached.

Never retryable: no amount of backoff frees storage or raises a plan limit. That is the whole reason this is not an ApiError, which a 507 would otherwise become through the 5xx catch-all.

Instance Method Summary collapse

Constructor Details

#initialize(message = "Account limit reached", hint: nil, cause: nil) ⇒ LimitExceededError

Returns a new instance of LimitExceededError.



11
12
13
14
15
16
17
18
19
20
# File 'lib/basecamp/limit_exceeded_error.rb', line 11

def initialize(message = "Account limit reached", hint: nil, cause: nil)
  super(
    code: ErrorCode::LIMIT_EXCEEDED,
    message: message,
    hint: hint,
    http_status: 507,
    retryable: false,
    cause: cause
  )
end