Exception: AxHub::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/axhub_sdk.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(category:, code:, message: nil, status: 0, retryable: false, request_id: nil) ⇒ Error

Returns a new instance of Error.



14
15
16
# File 'lib/axhub_sdk.rb', line 14

def initialize(category:, code:, message: nil, status: 0, retryable: false, request_id: nil)
  super(message || code); @category = category; @code = code; @status = status; @retryable = retryable; @request_id = request_id
end

Instance Attribute Details

#categoryObject (readonly)

Returns the value of attribute category.



13
14
15
# File 'lib/axhub_sdk.rb', line 13

def category
  @category
end

#codeObject (readonly)

Returns the value of attribute code.



13
14
15
# File 'lib/axhub_sdk.rb', line 13

def code
  @code
end

#request_idObject (readonly)

Returns the value of attribute request_id.



13
14
15
# File 'lib/axhub_sdk.rb', line 13

def request_id
  @request_id
end

#retryableObject (readonly)

Returns the value of attribute retryable.



13
14
15
# File 'lib/axhub_sdk.rb', line 13

def retryable
  @retryable
end

#statusObject (readonly)

Returns the value of attribute status.



13
14
15
# File 'lib/axhub_sdk.rb', line 13

def status
  @status
end