473,408 Members | 2,477 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Clarification regarding "Raise Application Error" and "seq_collision exception"

What does the RAISE_APPLICATION_ERROR mean ? When this error is raised whether the database errors are occurred ? Please can any one explain clearly what this error means ?

Also What does the seq_collision exception means and when it will be raised under what conditions ? What is the general correction to be done when this type of error occurs ?
Sep 6 '07 #1
2 5265
amitpatel66
2,367 Expert 2GB
What does the RAISE_APPLICATION_ERROR mean ? When this error is raised whether the database errors are occurred ? Please can any one explain clearly what this error means ?

Also What does the seq_collision exception means and when it will be raised under what conditions ? What is the general correction to be done when this type of error occurs ?

RAISE_APPLICATION_ERROR is used to create a user defined error messages.

The user defined messages are associated with the user defined number (SQLCODE) using RAISE_APPLICATION_ERROR.

Eg:
DECLARE
a NUMBER := 0;
b NUMBER := 10;
BEGIN
IF(a = 0) THEN
RAISE_APPLICATION_ERROR(-20000,' Cannot Divide by Zero');
ELSE
b: = b/a;
END IF;
END;

The number passed in the RAISE_APPLICATION_ERROR should be negative and between -20000 and -20999
Sep 7 '07 #2
Raise_application_Error is used to defined a user defined exceptions to the stored sub programmes

raise_application_error(-20001,'user defined exception',TRUE/FLASE);

if 3rd arg is TRUE it stores the user defined exceptions in Stack

if it is FALSE then it will clear all from stack

it's range starts from -20001 to -99999
Sep 14 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: gregory_may | last post by:
I have an application I created called "JpegViewer.exe". It simply loads a Jpeg file and displays in on the screen. It works great, in my lab. When I am using it at a customer site, things...
2
by: Chris Herring | last post by:
Hi there: Well, let me start off by saying that I am a Visual Studio drag and drop weenie, not a real programmer. So I tend to get confused when things do not look like the instructions said they...
2
by: Mortimer Schnurd | last post by:
Hi, I've been dabbling with C# for a short time now but am ready to use it in extending/converting older VB6 applications. I have one VB6 application I am now working to extend and I would like to...
6
by: Tony | last post by:
Dear All, When I run an example program on the http://www.dotnetjunkies.com/quickstart/util/srcview.aspx?path=/quickstart/aspplus/samples/webforms/data/datagrid1.src&file=VB\datagrid1.aspx&font=3 ...
1
by: Tony | last post by:
Dear all, When running the program, I recieved the following error "Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'sa'." In web.config file, the connection...
2
by: HvG | last post by:
I'm sure this is a trivial question, but I cannot create an Outlook Object from a WebForm app, but can from a console app. or a Windows app. My COM knowledge is very poor sorry. ...
9
by: MrSpock | last post by:
1. Create a new Windows Application project. 2. Open the project properties and check "Make single instance application". 3. Build. 4. Go to the release folder and run the application. 5. Try to...
1
by: Jake Barnes | last post by:
I can not figure out the meaning of this error: Error: " nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame :: http://www.bluecasts.com/pdsIncludes/pdsAjax.js ::...
2
by: Monty | last post by:
I have a GridView in an update panel, and the GridView has an ObjectDataSource. Under certain conditions the Object that is the ObjectDataSource will throw an exception with a specific error...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.