From 015dbf6dcdc56893bc97a062a905e90b1c2ea529 Mon Sep 17 00:00:00 2001 From: tknall Date: Fri, 11 Sep 2009 07:11:57 +0000 Subject: Bugfixes git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@339 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- src/main/java/at/knowcenter/wag/egov/egiz/PdfASID.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/main/java/at/knowcenter/wag/egov/egiz/PdfASID.java') diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/PdfASID.java b/src/main/java/at/knowcenter/wag/egov/egiz/PdfASID.java index 0409bb7..cfa9636 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/PdfASID.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/PdfASID.java @@ -19,6 +19,7 @@ package at.knowcenter.wag.egov.egiz; import java.io.Serializable; +import at.gv.egiz.pdfas.exceptions.ErrorCode; import at.knowcenter.wag.egov.egiz.exceptions.InvalidIDException; /** @@ -88,17 +89,17 @@ public class PdfASID implements Serializable if (tokens.length != 5) { - throw new InvalidIDException(800, "The doesn't have enough tokens (" + id + ")"); + throw new InvalidIDException(ErrorCode.UNABLE_TO_PARSE_ID, "The doesn't have enough tokens (" + id + ")"); } if (!tokens[0].equals(URN)) { - throw new InvalidIDException(800, "The id must start with " + URN + " (" + id + ")"); + throw new InvalidIDException(ErrorCode.UNABLE_TO_PARSE_ID, "The id must start with " + URN + " (" + id + ")"); } if (!tokens[1].equals(NAMESPACE)) { - throw new InvalidIDException(800, "The namespace of the id must be " + NAMESPACE + " (" + id + ")"); + throw new InvalidIDException(ErrorCode.UNABLE_TO_PARSE_ID, "The namespace of the id must be " + NAMESPACE + " (" + id + ")"); } set(tokens[2], tokens[3], tokens[4]); -- cgit v1.2.3