Class RMException

  • All Implemented Interfaces:
    java.io.Serializable

    public class RMException
    extends java.lang.RuntimeException
    A simple subclass of RuntimeException that RM uses to indicate errors that don't always really need to be declared or caught.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      RMException()
      Constructs a new RM exception with null as its detail message.
      RMException​(java.lang.String aMessage)
      Constructs a new RM exception with the specified detail message.
      RMException​(java.lang.String aMessage, java.lang.Throwable aCause)
      Constructs a new RM exception with the specified detail message and cause.
      RMException​(java.lang.Throwable aCause)
      Constructs a new RM exception with the specified cause.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMessage()
      Override get message to forward to cause.
      static java.lang.Throwable getRootCause​(java.lang.Throwable aThrowable)
      Returns the root cause of a throwable.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, 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

      • RMException

        public RMException()
        Constructs a new RM exception with null as its detail message.
      • RMException

        public RMException​(java.lang.String aMessage)
        Constructs a new RM exception with the specified detail message.
      • RMException

        public RMException​(java.lang.String aMessage,
                           java.lang.Throwable aCause)
        Constructs a new RM exception with the specified detail message and cause.
      • RMException

        public RMException​(java.lang.Throwable aCause)
        Constructs a new RM exception with the specified cause.
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Override get message to forward to cause.
        Overrides:
        getMessage in class java.lang.Throwable
      • getRootCause

        public static java.lang.Throwable getRootCause​(java.lang.Throwable aThrowable)
        Returns the root cause of a throwable.