class

GoogleDrive::ApiError

Inherits Exception / Reference / Object

Constructors

new(code : Int32 | Nil, message, response_headers : Nil | Hash(String, Array(String) | String))

Usage examples: ApiError.new ApiError.new(message: "message") ApiError.new(code: 500, response_headers: {}, message: "") ApiError.new(code: 404, message: "Not Found")

Source
new(code : Int32 | Nil, message)
Source

Instance methods

code
Source
response_headers
Source
to_s

Override to_s to display a friendly error message

Source