Salut,

Je travaille sur une procédure d'injection de données en provenance d'un service. La cible est un schéma qui compte 17 tables.

Étant donné qu'il y a pas mal d'étape, je produis des exceptions lorsque quelque chose s'est mal passé.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 
...
IS
    vExeptionTreatmentNotFound EXCEPTION;
    vExeptionTreatmentDateNotSet EXCEPTION;
BEGIN
...
	IF pTREATMENT_ID is null THEN
		RAISE vExeptionTreatmentNotFound;
	END IF;
	IF pTREATMENT_DATE is null THEN
		RAISE vExeptionTreatmentDateNotSet;
	END IF;
...
EXCEPTION
    WHEN vExeptionTreatmentNotFound THEN
        raise_application_error(-20001, 'Treatment not found');
    WHEN vExeptionTreatmentDateNotSet THEN
        raise_application_error(-20010, 'Treatment date not set');
END;
Est il possible de connaitre le n° de ligne dans le package qui a déclenché l'exception pour éviter d'avoir un retour type error in line 1 ?

D'avance merci

Laurent