com.lowagie.text
Class DocumentException
Exception
com.lowagie.text.DocumentException
public class DocumentException
extends Exception
Signals that an error has occurred in a Document
.
String | getLocalizedMessage() - and make sure we also produce a localized version
|
String | getMessage() - We print the message of the checked exception
|
void | printStackTrace() - we have to override this as well
|
void | printStackTrace(java.io.PrintStream s) - here we prefix, with s.print(), not s.println(), the stack
trace with "ExceptionConverter:"
|
void | printStackTrace(java.io.PrintWriter s) - Again, we prefix the stack trace with "ExceptionConverter:"
|
private static String | split(String s) - Removes everything in a String that comes before a '.'
|
String | toString() - The toString() is changed to be prefixed with ExceptionConverter
|
DocumentException
public DocumentException()
Constructs a DocumentException
whithout a message.
DocumentException
public DocumentException(Exception ex)
Creates a Document exception.
ex
- an exception that has to be turned into a DocumentException
DocumentException
public DocumentException(String message)
Constructs a DocumentException
with a message.
message
- a message describing the exception
getLocalizedMessage
public String getLocalizedMessage()
and make sure we also produce a localized version
getMessage
public String getMessage()
We print the message of the checked exception
printStackTrace
public void printStackTrace()
we have to override this as well
printStackTrace
public void printStackTrace(java.io.PrintStream s)
here we prefix, with s.print(), not s.println(), the stack
trace with "ExceptionConverter:"
printStackTrace
public void printStackTrace(java.io.PrintWriter s)
Again, we prefix the stack trace with "ExceptionConverter:"
split
private static String split(String s)
Removes everything in a String that comes before a '.'
- the part that comes after the dot
toString
public String toString()
The toString() is changed to be prefixed with ExceptionConverter
- the String version of the exception