public class BadArgException from<ExceptionEvent>
The BadArgException class is used to report a generic error with a method argument. It can be used to report a "bad method argument" error to a caller via a fired exception. The Aztec Framework uses it in certain cases when a bad value for an argument would make it difficult to move forward with the processing. If the argument is null and should not be, this exception should not be used. There is a special exception for a null argument named "NullArgException".
The class does not contain any extra information associated with the bad argument, other than the one based argument index. A new class should be derived from this class if more detailed information is required.
Class Hierarchy, Thread, NullArgException
public method BadArgException(int ArgIndex)
One based index of the bad argument
Constructor for the BadArgException class using the one based index of the bad argument in question.
public method<int> Index()
Index of bad arg
This method returns the one based index of the bad argument. This is the value which was passed into the constructor.