Exception: Fizzy::UsageError
- Defined in:
- lib/fizzy/errors.rb
Overview
Raised when there’s a usage error (invalid arguments, missing config).
Instance Attribute Summary
Attributes inherited from Error
#cause, #code, #hint, #http_status, #request_id, #retry_after, #retryable
Instance Method Summary collapse
-
#initialize(message, hint: nil) ⇒ UsageError
constructor
A new instance of UsageError.
Methods inherited from Error
#exit_code, exit_code_for, #retryable?
Constructor Details
#initialize(message, hint: nil) ⇒ UsageError
Returns a new instance of UsageError.
119 120 121 |
# File 'lib/fizzy/errors.rb', line 119 def initialize(, hint: nil) super(code: ErrorCode::USAGE, message: , hint: hint) end |