Hallo
ich habe für meine DB einen SP programmiert welche auch schon funktioniert wenn alles vorhanden ist (Tabellen, usw.).
Was mir jetzt noch fehlt ist die Excetpion- Behandlung, sollte mal etwas fehl schlagen.
Meine Frage wäre jetzt, wie ich dieses Exception- Handling in einer SP für eine Oracle DB mache - Ich möchte den ganzen Code innerhalb von BEGIN ... END; mit dem Exception- Handling abfangen.
Weiß jemand wie das am Besten machen kann?
Vielen Dank,
lg
PollerJava
ich habe für meine DB einen SP programmiert welche auch schon funktioniert wenn alles vorhanden ist (Tabellen, usw.).
Was mir jetzt noch fehlt ist die Excetpion- Behandlung, sollte mal etwas fehl schlagen.
Meine Frage wäre jetzt, wie ich dieses Exception- Handling in einer SP für eine Oracle DB mache - Ich möchte den ganzen Code innerhalb von BEGIN ... END; mit dem Exception- Handling abfangen.
Weiß jemand wie das am Besten machen kann?
Vielen Dank,
lg
PollerJava
Code:
CREATE OR REPLACE PROCEDURE NamederSP AS declarationen BEGIN /* hier beginn des Exception- Handlings */ programmcode /* hier ende des Exception- Handlings */ END;
Comment