Class: Error
Instance Attribute Summary collapse
-
#errno ⇒ Object
readonly
Returns the value of attribute errno.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Attributes inherited from Protocol
Instance Method Summary collapse
-
#initialize(errno, reason) ⇒ Error
constructor
A new instance of Error.
Methods inherited from Protocol
Constructor Details
#initialize(errno, reason) ⇒ Error
110 111 112 113 114 |
# File 'lib/cocaine/protocol.rb', line 110 def initialize(errno, reason) super RPC::ERROR @errno = errno @reason = reason end |
Instance Attribute Details
#errno ⇒ Object (readonly)
Returns the value of attribute errno.
107 108 109 |
# File 'lib/cocaine/protocol.rb', line 107 def errno @errno end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
108 109 110 |
# File 'lib/cocaine/protocol.rb', line 108 def reason @reason end |