Class: Wamp::Type::Error
- Inherits:
-
Object
- Object
- Wamp::Type::Error
- Defined in:
- lib/wamp/type/error.rb
Overview
Error Type
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#details ⇒ Object
readonly
Returns the value of attribute details.
-
#kwargs ⇒ Object
readonly
Returns the value of attribute kwargs.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(uri:, args: [], kwargs: {}, details: {}) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(uri:, args: [], kwargs: {}, details: {}) ⇒ Error
Returns a new instance of Error.
16 17 18 19 20 21 |
# File 'lib/wamp/type/error.rb', line 16 def initialize(uri:, args: [], kwargs: {}, details: {}) @uri = uri @args = args @kwargs = kwargs @details = details end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
14 15 16 |
# File 'lib/wamp/type/error.rb', line 14 def args @args end |
#details ⇒ Object (readonly)
Returns the value of attribute details.
14 15 16 |
# File 'lib/wamp/type/error.rb', line 14 def details @details end |
#kwargs ⇒ Object (readonly)
Returns the value of attribute kwargs.
14 15 16 |
# File 'lib/wamp/type/error.rb', line 14 def kwargs @kwargs end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
14 15 16 |
# File 'lib/wamp/type/error.rb', line 14 def uri @uri end |