class GoogleDrive::ApiError
- GoogleDrive::ApiError
- Exception
- Reference
- Object
Defined in:
google_drive/api_error.crConstructors
-
.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")
- .new(code : Int32 | Nil, message)
Instance Method Summary
- #code : Int32 | Nil
- #response_headers : Hash(String, Array(String) | String) | Nil
-
#to_s
Override to_s to display a friendly error message
Constructor Detail
def self.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")