Package com.openhtmltopdf.util
Class XRRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.openhtmltopdf.util.XRRuntimeException
-
- All Implemented Interfaces:
java.io.Serializable
public class XRRuntimeException extends java.lang.RuntimeException
General runtime exception used in XHTMLRenderer. Auto-logs messages to plumbing.exception hierarchy.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description XRRuntimeException(java.lang.String msg)
Instantiates a new Exception with a "reason" message.XRRuntimeException(java.lang.String msg, java.lang.Throwable cause)
Instantiates a new Exception with a "reason" message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
log(java.lang.String msg)
Logs the exception message.private void
log(java.lang.String msg, java.lang.Throwable cause)
Logs the exception's message, plus the Throwable that caused the exception to be thrown.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
XRRuntimeException
public XRRuntimeException(java.lang.String msg)
Instantiates a new Exception with a "reason" message.- Parameters:
msg
- Reason the exception is being thrown.
-
XRRuntimeException
public XRRuntimeException(java.lang.String msg, java.lang.Throwable cause)
Instantiates a new Exception with a "reason" message.- Parameters:
msg
- Reason the exception is being thrown.cause
- Throwable that caused this exception to be thrown (e.g. IOException.
-
-
Method Detail
-
log
private void log(java.lang.String msg)
Logs the exception message.- Parameters:
msg
- Message for the log.
-
log
private void log(java.lang.String msg, java.lang.Throwable cause)
Logs the exception's message, plus the Throwable that caused the exception to be thrown.- Parameters:
msg
- Message for the log.cause
- Throwable that caused this exception to be thrown (e.g. IOException.
-
-