Exception: Tina4::LogArgumentError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/tina4/log.rb

Overview

Invalid argument to a public logger method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, argument: nil, accepted: nil) ⇒ LogArgumentError

Returns a new instance of LogArgumentError.



26
27
28
29
30
# File 'lib/tina4/log.rb', line 26

def initialize(message, argument: nil, accepted: nil)
  super(message)
  @argument = argument
  @accepted = accepted
end

Instance Attribute Details

#acceptedObject

Returns the value of attribute accepted.



24
25
26
# File 'lib/tina4/log.rb', line 24

def accepted
  @accepted
end

#argumentObject

Returns the value of attribute argument.



24
25
26
# File 'lib/tina4/log.rb', line 24

def argument
  @argument
end