|
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
// PURPOSE. IT CAN BE DISTRIBUTED FREE OF CHARGE AS LONG AS THIS HEADER
// REMAINS UNCHANGED.
//
// Email: gustavo_franco@hotmail.com
//
// Copyright (C) 2005 Franco, Gustavo
//
#include "AQException.h"
namespace AQLib
{
AQException::AQException(AQException *exception) : Exception(exception->Message, exception)
{
mStackTrace = exception->StackTrace;
ErrorCode = exception->ErrorCode;
}
AQException::AQException(int errorCode, String *errorMessage) : Exception(errorMessage)
{
mStackTrace = NULL;
ErrorCode = errorCode;
}
AQException::AQException(int errorCode, String *errorMessage, Exception *ex) : Exception(errorMessage, ex)
{
mStackTrace = ex->StackTrace;
ErrorCode = errorCode;
}
String* AQException::get_StackTrace()
{
if (mStackTrace == NULL)
return __super::get_StackTrace();
return mStackTrace;
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I started with programming about 19 years ago as a teenager, from my old Commodore moving to PC/Server environment Windows/UNIX SQLServer/Oracle doing gwBasic, QBasic, Turbo Pascal, Assembler, Turbo C, BC, Summer87, Clipper, Fox, SQL, C/C++, Pro*C, VB3/5/6, Java, and today loving C#.
Currently working as SDE on Failover Clustering team for Microsoft.
Passion for most programming languages and my kids Aidan&Nadia.