Click here to Skip to main content
15,881,173 members
Articles / Programming Languages / Visual Basic

Oracle Advance Queue or Advanced Queuing from .NET (C#/VB/MC++)

Rate me:
Please Sign up or sign in to vote.
4.88/5 (26 votes)
22 Nov 2005CPOL23 min read 177.1K   3.7K   71  
How to use Oracle advance queue from a .NET enviroment.
//
//  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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer Microsoft
United States United States
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.

Comments and Discussions