Exception: SmbCloud::Auth::Error

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, error_code: nil, payload: nil) ⇒ Error

Returns a new instance of Error.



15
16
17
18
19
# File 'lib/auth.rb', line 15

def initialize(message = nil, error_code: nil, payload: nil)
  super(message)
  @error_code = error_code
  @payload = payload
end

Instance Attribute Details

#error_codeObject (readonly)

Returns the value of attribute error_code.



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

def error_code
  @error_code
end

#payloadObject (readonly)

Returns the value of attribute payload.



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

def payload
  @payload
end