Exception: Deckle::UsageLimitError

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

Instance Attribute Summary

Attributes inherited from Error

#code, #message, #status_code

Instance Method Summary collapse

Constructor Details

#initialize(message = "Usage limit exceeded") ⇒ UsageLimitError

Returns a new instance of UsageLimitError.



43
44
45
# File 'lib/deckle/errors.rb', line 43

def initialize(message = "Usage limit exceeded")
  super(message, status_code: 403, code: "USAGE_LIMIT")
end