aztec.system.BadArgException
public class BadArgException from<ExceptionEvent>
Base
Event
ExceptionEvent
BadArgException
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.
BadArgException Methods
Derived Classes
None
See Also
Class Hierarchy, Thread, NullArgException
BadArgException()
public method BadArgException(int ArgIndex)
Parameters
ArgIndex
One based index of the bad argument
Return Value
None
Description
Constructor for the BadArgException class using the one based index of the bad argument in question.
BadArgException Class
Index()
public method<int> Index()
Parameters
None
Return Value
Index of bad arg
Description
This method returns the one based index of the bad argument. This is the value which was passed into the constructor.
BadArgException Class