Aztec® Programming Language

Version 1.0 Alpha

Copyright © 2010-2013

Cold Spring® Development Group

All Rights Reserved

Download Aztec

Site Help

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

BadArgException() Constructor for the BadArgException class
Index() One based index of the bad argument

Derived Classes

See Also

  


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

 

Copyright © 2010-2013

Cold Spring Development Group

All Rights Reserved

Download Aztec