struct OpenAI::APIErrorModel

Included Modules

Extended Modules

Defined in:

openai/errors.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(code : JSON::Any | Nil, message : String | Nil | Array(String) | Nil, param : String | Nil, type : String | Nil, innererror : InnerError | Nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def clone #

[View source]
def code : JSON::Any | Nil #

def copy_with(code _code = @code, message _message = @message, param _param = @param, type _type = @type, innererror _innererror = @innererror) #

[View source]
def error_msg : String | Nil #

[View source]
def innererror : InnerError | Nil #

def message : String | Nil | Array(String) | Nil #

def param : String | Nil #

def type : String | Nil #