Exception: LearnWorlds::LearnWorldsError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/learn_worlds/learn_worlds_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message)
  @code = code
  @context = context
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



3
4
5
# File 'lib/learn_worlds/learn_worlds_error.rb', line 3

def code
  @code
end

#contextObject (readonly)

Returns the value of attribute context.



3
4
5
# File 'lib/learn_worlds/learn_worlds_error.rb', line 3

def context
  @context
end