Class 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.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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.