Exception: KXI::Exceptions::NoArgumentException

Inherits:
Exception
  • Object
show all
Defined in:
lib/kxi/exceptions/no_argument_exception.rb

Overview

Raised when argument value has no binding argument

Instance Method Summary collapse

Constructor Details

#initialize(val) ⇒ NoArgumentException

Instantiates the KXI::Exceptions::NoArgumentException class

Parameters:

  • val (String)

    Erroneous value



15
16
17
18
# File 'lib/kxi/exceptions/no_argument_exception.rb', line 15

def initialize(val)
	super("Value '#{val}' has no argument to bind to!")
	@val = val
end

Instance Method Details

#valueString

Gets the erroneous value

Returns:

  • (String)

    Erroneous value



9
10
11
# File 'lib/kxi/exceptions/no_argument_exception.rb', line 9

def value
	@val
end