Exception: LearnWorlds::LearnWorldsError
- Inherits:
-
StandardError
- Object
- StandardError
- LearnWorlds::LearnWorldsError
- Defined in:
- lib/learn_worlds/learn_worlds_error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#context ⇒ Object
readonly
Returns the value of attribute context.
Instance Method Summary collapse
-
#initialize(code:, context:, message:) ⇒ LearnWorldsError
constructor
A new instance of LearnWorldsError.
Constructor Details
#initialize(code:, context:, message:) ⇒ LearnWorldsError
Returns a new instance of LearnWorldsError.
5 6 7 8 9 |
# File 'lib/learn_worlds/learn_worlds_error.rb', line 5 def initialize(code:, context:, message:) super() @code = code @context = context end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/learn_worlds/learn_worlds_error.rb', line 3 def code @code end |
#context ⇒ Object (readonly)
Returns the value of attribute context.
3 4 5 |
# File 'lib/learn_worlds/learn_worlds_error.rb', line 3 def context @context end |