Creating custom error message [message #582988] |
Wed, 24 April 2013 08:29  |
 |
konvictx
Messages: 6 Registered: April 2013 Location: Pakistan
|
Junior Member |
|
|
hy iam trying to create my own error message but when ever i used sp_addmessage it gives error sp2-0734 unknown command biggning... what to do??
[EDITED by LF: fixed topic title typos; was "creating coustum error messagw", "sql oracal 10g"]
[Updated on: Fri, 26 April 2013 00:08] by Moderator Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: creating coustum error messagw [message #583111 is a reply to message #583000] |
Thu, 25 April 2013 23:59  |
 |
Barbara Boehmer
Messages: 9106 Registered: November 2002 Location: California, USA
|
Senior Member |
|
|
In Oracle, errors are referred to as exceptions and you create custom messages in functions and procedures that apply to only those functions and procedures. Please read the following section of the online documentation, paying particular attention to user-defined exceptions and raise_application_error.
PL/SQL Error Handling
|
|
|