Exception: LogiAuth::ServerError

Inherits:
Error
  • Object
show all
Defined in:
lib/logi_auth/errors.rb

Overview

Raised by Server for OAuth / transport failures.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, message, detail: nil) ⇒ ServerError

Returns a new instance of ServerError.



28
29
30
31
32
# File 'lib/logi_auth/errors.rb', line 28

def initialize(code, message, detail: nil)
  @code = code
  @detail = detail
  super(message)
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



26
27
28
# File 'lib/logi_auth/errors.rb', line 26

def code
  @code
end

#detailObject (readonly)

Returns the value of attribute detail.



26
27
28
# File 'lib/logi_auth/errors.rb', line 26

def detail
  @detail
end