Exception: Fizzy::UsageError

Inherits:
Error
  • Object
show all
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

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(message, hint: nil)
  super(code: ErrorCode::USAGE, message: message, hint: hint)
end