Exception: RunApi::Core::InsufficientCreditsError

Inherits:
Error
  • Object
show all
Defined in:
lib/runapi/core/errors.rb

Overview

Raised when account has insufficient credits (HTTP 402).

Constant Summary

Constants inherited from Error

Error::DEFAULT_MESSAGES, Error::STATUS_MAP

Instance Attribute Summary

Attributes inherited from Error

#details, #request_id, #status

Instance Method Summary collapse

Methods inherited from Error

from_response, #to_h

Constructor Details

#initialize(message = "Insufficient credits", **kwargs) ⇒ InsufficientCreditsError

Returns a new instance of InsufficientCreditsError.



178
179
180
# File 'lib/runapi/core/errors.rb', line 178

def initialize(message = "Insufficient credits", **kwargs)
  super(message, status: 402, **kwargs)
end