Exception: Async::Matrix::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/async/matrix/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errcode, message, status: nil) ⇒ Error

Returns a new instance of Error.



13
14
15
16
17
# File 'lib/async/matrix/error.rb', line 13

def initialize(errcode, message, status: nil)
  @errcode = errcode
  @status = status
  super(message)
end

Instance Attribute Details

#errcodeObject (readonly)

Returns the value of attribute errcode.



11
12
13
# File 'lib/async/matrix/error.rb', line 11

def errcode
  @errcode
end

#statusObject (readonly)

Returns the value of attribute status.



11
12
13
# File 'lib/async/matrix/error.rb', line 11

def status
  @status
end