WRAPPER_API GeoCalcException(const wchar_t *location)
WRAPPER_API GeoCalcException(Code errorCode, const wchar_t *location)
WRAPPER_API GeoCalcException(Code errorCode, const wchar_t *location, const wchar_t *details)
WRAPPER_API GeoCalcException(const GeoCalcException &source)
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.
_towchar details("This exception provides an example of how to use a GeoCalcException");
throw GeoCalcPBW::GeoCalcException(GeoCalcPBW::GeoCalcException::Code::Unspecified, location, details);