Error Management Features
Error Management Features
OPP 2007
February 28 March 1, 2007
San Mateo Marriott
San Mateo, California
An ODTUG SP* Oracle PL/SQL
Programming Conference
*SP Seriously Practical Conference
For more information isit !!!"o#tu$"com or call %10&'(2&7'''
O)*+, -alei#osco.e
/une 18 21, 2007
Pre&conference 0an#s&on *rainin$ & /une 11 17
0ilton )aytona 2each Oceanfront 3esort
)aytona, Flori#a
WOW-Wide Open World, Wide Open Web
Copyright 2000-2006 Steven Feuerstein - Page 2
Ma4in$ the Most of
Oracle P56S75
8rror Mana$ement Features
Steven Feuerstein
PL/SQL Evangelist
Quest Software
[email protected]
m
Copyright 2000-2006 Steven Feuerstein - Page 3
Ten Years Writing Ten Books
on the Oracle PL/SQL Language
Copyright 2000-2006 Steven Feuerstein - Page 4
How to benefit most from this class
http://oracleplsqlprogramming.com/resour
ces.html
Deliberate
Unortunate
Une!pected
Deining e!ceptions
+aising e!ceptions
)anding e!ceptions
+#1$,5#PP%10#.1235,++2+
D@S54$I/I$9.F):8$5%::):5S$8'A
D@S54$I/I$9.F):8$5%::):5@8'A$:8'%
Drawbac"s:
:8IS%58((/I'8$I)*5%::):: donFt
leave it to the developer to decide
how to raise.
4ive your
error numbers
names and
associate
them with
named
e!ceptions.
&ACGAGE e**nums
I!
en"Eene*a,"e**-* C#N!%AN% N$BER := 92AAAA;
eKc"Eene*a,"e**-* E(CE&%I#N;
&RAGA E(CE&%I#N"INI%
(eKc"Eene*a,"e**-*7 92AAAA);
en"must"+e"=< C#N!%AN% N$BER := 92AAA=;
eKc"must"+e"=< E(CE&%I#N;
&RAGA E(CE&%I#N"INI%
(eKc"must"+e"=<7 92AAA=);
en"sa,"t--",-8 C#N!%AN% N$BER := 92AAA2;
eKc"sa,"t--",-8 E(CE&%I#N;
&RAGA E(CE&%I#N"INI%
(eKc"sa,"t--",-8 7 92AAA2);
maK"e**-*"use2 C#N!%AN% N$BER := 92AAA2;
END e**nums; ms$info".4$
ms$info"fmb6fm<
2ut #on>t !rite this
co#e manually?
Copyright 2000-2006 Steven Feuerstein - Page 29
-sing the stan"ar" raise &rogram