Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
openrouter
v0.1.1
OpenRouter
ApiError
BadGatewayError
BadRequestError
Choice
Client
CompletionRequest
Error
ForbiddenError
FunctionDescription
Message
Model
NonChatChoice
NonStreamingChoice
PaymentRequiredError
RequestTimeoutError
Response
ResponseObject
Role
ServiceUnavailableError
StreamingChoice
Tool
ToolCall
TooManyRequestsError
UnauthorizedError
Usage
Generated using Crystal 1.14.0
2025-01-02 10:41:38 UTC
class
OpenRouter::
ApiError
OpenRouter::ApiError
OpenRouter::Error
Exception
Reference
Object
Overview
Generic API error
Defined in:
openrouter/errors.cr
Constructors
.new
(message : String, code : Int32 | Nil =
nil
)
Instance Method Summary
#code
: Int32 | Nil
Constructor methods inherited from class
OpenRouter::Error
new(message : String)
new
Constructor Detail
def self.
new
(message : String, code : Int32 | Nil =
nil
)
#
[
View source
]
Instance Method Detail
def
code
: Int32 | Nil
#
[
View source
]