Exception: Dentaku::MathDomainError

Inherits:
Error
  • Object
show all
Defined in:
lib/dentaku/exceptions.rb

Instance Attribute Summary collapse

Attributes inherited from Error

#recipient_variable

Instance Method Summary collapse

Constructor Details

#initialize(function_name, args) ⇒ MathDomainError

Returns a new instance of MathDomainError.



17
18
19
20
# File 'lib/dentaku/exceptions.rb', line 17

def initialize(function_name, args)
  @function_name = function_name
  @args = args
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



15
16
17
# File 'lib/dentaku/exceptions.rb', line 15

def args
  @args
end

#function_nameObject (readonly)

Returns the value of attribute function_name.



15
16
17
# File 'lib/dentaku/exceptions.rb', line 15

def function_name
  @function_name
end