struct

OpenAI::APIErrorModel

Inherits JSON::Serializable::Unmapped / JSON::Serializable / Struct / Value / Object

Constructors

new(code : JSON::Any | Nil, message : String | Nil | Array(String) | Nil, param : String | Nil, type : String | Nil, innererror : InnerError | Nil)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

clone
Source
code
copy_with(code _code = @code, message _message = @message, param _param = @param, type _type = @type, innererror _innererror = @innererror)
Source
error_msg
Source
innererror
message
param
type