GeoCalcException Constructor

public GeoCalcException()

public GeoCalcException(const BmgChar *location)

public GeoCalcException(Code errorCode, const BmgChar *location)

public GeoCalcException(Code errorCode, const BmgChar *location, const BmgChar *details)

public GeoCalcException(const GeoCalcException &source)

 

Description

The GeoCalcException constructor creates a new instance of the GeoCalcException class.  There are four signatures for this constructor that allow you to specify various amounts of detail about the exception.  One can supply an ErrorCode that describes the exception according to the Code enumeration, the Location from which the exception was thrown, and a string that gives some Details about the exception.  There is also a copy-constructor that produces a GeoCalcException with the same value as the argument.

 

Example

void GeoCalcException_GeoCalcException()

{

string location("GeoCalcException_GeoCalcException");

string details("This exception provides an example of how to use a GeoCalcException");

throw GeoCalc.GeoCalcException(GeoCalc.GeoCalcException.Code.Unspecified, location, details);

}