aboutsummaryrefslogtreecommitdiff
path: root/stamper/stmp-itext/src/main/java/com/lowagie/text
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2013-12-12 12:46:38 +0100
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2013-12-12 12:46:38 +0100
commit40fc290721a9ab0c7a815dc60ea965d615860f21 (patch)
treec5e3e19f17f5af292dc870c887079e154182a741 /stamper/stmp-itext/src/main/java/com/lowagie/text
parent9bc71794a49d89e1ff6adab76f5f473b94b3d348 (diff)
downloadpdf-as-4-40fc290721a9ab0c7a815dc60ea965d615860f21.tar.gz
pdf-as-4-40fc290721a9ab0c7a815dc60ea965d615860f21.tar.bz2
pdf-as-4-40fc290721a9ab0c7a815dc60ea965d615860f21.zip
Moved hard coded error strings into common.propreties
Diffstat (limited to 'stamper/stmp-itext/src/main/java/com/lowagie/text')
-rw-r--r--stamper/stmp-itext/src/main/java/com/lowagie/text/pdf/ITextStamperAccess.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/stamper/stmp-itext/src/main/java/com/lowagie/text/pdf/ITextStamperAccess.java b/stamper/stmp-itext/src/main/java/com/lowagie/text/pdf/ITextStamperAccess.java
index 65b4ba77..171e7420 100644
--- a/stamper/stmp-itext/src/main/java/com/lowagie/text/pdf/ITextStamperAccess.java
+++ b/stamper/stmp-itext/src/main/java/com/lowagie/text/pdf/ITextStamperAccess.java
@@ -6,6 +6,7 @@ import java.net.MalformedURLException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+import at.gv.egiz.pdfas.common.exceptions.PDFIOException;
import at.gv.egiz.pdfas.common.exceptions.PdfAsException;
import at.gv.egiz.pdfas.stmp.itext.ITextStamper;
@@ -35,12 +36,12 @@ public class ITextStamperAccess {
}
else
{
- throw new PdfAsException("failed to write PDF", new NullPointerException("Image dictionary not found in document structure!"));
+ throw new PDFIOException("error.pdf.io.02", new NullPointerException("Image dictionary not found in document structure!"));
}
}
else
{
- throw new PdfAsException("failed to write PDF", new NullPointerException("Resource dictionary not found in document structure!"));
+ throw new PDFIOException("error.pdf.io.02", new NullPointerException("Resource dictionary not found in document structure!"));
}
}