Exception: Geminize::ServerError

Inherits:
GeminizeError show all
Defined in:
lib/geminize/errors.rb

Overview

Error raised for server-side errors (5xx)

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, code = nil, http_status = 500) ⇒ ServerError

Returns a new instance of ServerError.



62
63
64
65
66
67
68
# File 'lib/geminize/errors.rb', line 62

def initialize(message = nil, code = nil, http_status = 500)
  super(
    message || "The Gemini API encountered a server error.",
    code,
    http_status
  )
end