Exception: KXI::Exceptions::NoArgumentException
- Inherits:
-
Exception
- Object
- Exception
- KXI::Exceptions::NoArgumentException
- Defined in:
- lib/kxi/exceptions/no_argument_exception.rb
Overview
Raised when argument value has no binding argument
Instance Method Summary collapse
-
#initialize(val) ⇒ NoArgumentException
constructor
Instantiates the NoArgumentException class.
-
#value ⇒ String
Gets the erroneous value.
Constructor Details
#initialize(val) ⇒ NoArgumentException
Instantiates the KXI::Exceptions::NoArgumentException class
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
#value ⇒ String
Gets the erroneous value
9 10 11 |
# File 'lib/kxi/exceptions/no_argument_exception.rb', line 9 def value @val end |