Class XRRuntimeException

All Implemented Interfaces:
Serializable

public class XRRuntimeException extends RuntimeException
General runtime exception used in XHTMLRenderer. Auto-logs messages to plumbing.exception hierarchy.
See Also:
  • Constructor Details

    • XRRuntimeException

      public XRRuntimeException(String msg)
      Instantiates a new Exception with a "reason" message.
      Parameters:
      msg - Reason the exception is being thrown.
    • XRRuntimeException

      public XRRuntimeException(String msg, 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 Details

    • log

      private void log(String msg)
      Logs the exception message.
      Parameters:
      msg - Message for the log.
    • log

      private void log(String msg, 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.