Class: Tide::API::Error

Inherits:
Dry::Struct::Value
  • Object
show all
Defined in:
lib/tide/api/error.rb

Overview

An error resulting from an API call

Instance Method Summary collapse

Instance Method Details

#codeInteger

A code that uniquely identifies the error

Returns:

  • (Integer)


9
# File 'lib/tide/api/error.rb', line 9

attribute :code, Types::Strict::Integer

#detailsString|nil

A long description of the error. Unfortunately, it is null most of the time.

Returns:

  • (String|nil)


21
# File 'lib/tide/api/error.rb', line 21

attribute :details, Types::Strict::String.optional

#messageString

A human readable description of the code

Returns:

  • (String)


15
# File 'lib/tide/api/error.rb', line 15

attribute :message, Types::Strict::String