Exception: Sdkey::Error

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

Overview

Protocol and transport errors for the SDKey client.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, message, cause = nil) ⇒ Error

Returns a new instance of Error.



8
9
10
11
12
# File 'lib/sdkey/errors.rb', line 8

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

Instance Attribute Details

#causeObject (readonly)

Returns the value of attribute cause.



6
7
8
# File 'lib/sdkey/errors.rb', line 6

def cause
  @cause
end

#codeObject (readonly)

Returns the value of attribute code.



6
7
8
# File 'lib/sdkey/errors.rb', line 6

def code
  @code
end