class KXI::Exceptions::ArgumentException

Raised when command-line parser encounters an error

Public Class Methods

new(arg, msg) click to toggle source

Instantiates the {KXI::Exceptions::ArgumentException} class @param arg [String] Name of argument @param msg [String] Error message

Calls superclass method
# File lib/kxi/exceptions/argument_exception.rb, line 16
def initialize(arg, msg)
        super("<#{arg}> #{msg}")
        @arg = arg
end

Public Instance Methods

argument() click to toggle source

Get the name of argument @return [String] Name of argument

# File lib/kxi/exceptions/argument_exception.rb, line 9
def argument
        @arg
end