Exception: Altertable::ApiError

Inherits:
AltertableError show all
Defined in:
lib/altertable/errors.rb,
sig/altertable/errors.rbs

Instance Attribute Summary collapse

Attributes inherited from AltertableError

#cause

Instance Method Summary collapse

Constructor Details

#initialize(message, status, details = {}) ⇒ ApiError

Returns a new instance of ApiError.

Parameters:

  • message (String)
  • status (Integer)
  • details (::Hash[String, untyped]) (defaults to: {})


18
19
20
21
22
# File 'lib/altertable/errors.rb', line 18

def initialize(message, status, details = {})
  super(message)
  @status = status
  @details = details
end

Instance Attribute Details

#details::Hash[String, untyped] (readonly)

Returns the value of attribute details.

Returns:

  • (::Hash[String, untyped])


16
17
18
# File 'lib/altertable/errors.rb', line 16

def details
  @details
end

#statusInteger (readonly)

Returns the value of attribute status.

Returns:

  • (Integer)


16
17
18
# File 'lib/altertable/errors.rb', line 16

def status
  @status
end