Top Description Fields Constructors Methods
com.openhtmltopdf.util

public Class XRRuntimeException

extends RuntimeException
Class Inheritance
Imports
java.util.logging.Level

General runtime exception used in XHTMLRenderer. Auto-logs messages to plumbing.exception hierarchy.
Author
Patrick Wright

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
XRRuntimeException(String
Reason the exception is being thrown.
msg
)

Instantiates a new Exception with a "reason" message.

public
XRRuntimeException(String
Reason the exception is being thrown.
msg
,
Throwable
Throwable that caused this exception to be thrown (e.g. IOException.
cause
)

Instantiates a new Exception with a "reason" message.

Method Summary

Modifier and TypeMethod and Description
private void
log(String
Message for the log.
msg
)

Logs the exception message.

private void
log(String
Message for the log.
msg
,
Throwable
Throwable that caused this exception to be thrown (e.g. IOException.
cause
)

Logs the exception's message, plus the Throwable that caused the exception to be thrown.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

Constructor Detail

XRRuntimeExceptionback to summary
public XRRuntimeException(String msg)

Instantiates a new Exception with a "reason" message.

Parameters
msg:String

Reason the exception is being thrown.

XRRuntimeExceptionback to summary
public XRRuntimeException(String msg, Throwable cause)

Instantiates a new Exception with a "reason" message.

Parameters
msg:String

Reason the exception is being thrown.

cause:Throwable

Throwable that caused this exception to be thrown (e.g. IOException.

Method Detail

logback to summary
private void log(String msg)

Logs the exception message.

Parameters
msg:String

Message for the log.

logback to summary
private void log(String msg, Throwable cause)

Logs the exception's message, plus the Throwable that caused the exception to be thrown.

Parameters
msg:String

Message for the log.

cause:Throwable

Throwable that caused this exception to be thrown (e.g. IOException.