Exception: Sendly::InsufficientCreditsError

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

Overview

Raised when the account has insufficient credits

Instance Attribute Summary

Attributes inherited from Error

#code, #details, #status_code

Instance Method Summary collapse

Constructor Details

#initialize(message = "Insufficient credits") ⇒ InsufficientCreditsError

Returns a new instance of InsufficientCreditsError.



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

def initialize(message = "Insufficient credits")
  super(message, code: "INSUFFICIENT_CREDITS", status_code: 402)
end