class Plaid::ApiError

Defined in:

plaid/api_error.cr

Constructors

Instance Method Summary

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")


[View source]
def self.new(code : Int32 | Nil, message) #

[View source]

Instance Method Detail

def code : Int32 | Nil #

[View source]
def response_headers : Hash(String, Array(String) | String) | Nil #

[View source]
def to_s #

Override to_s to display a friendly error message


[View source]