Class AlfrescoRuntimeException

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static AlfrescoRuntimeException create​(java.lang.String msgId, java.lang.Object... objects)
      Helper factory method making use of variable argument numbers
      static AlfrescoRuntimeException create​(java.lang.Throwable cause, java.lang.String msgId, java.lang.Object... objects)
      Helper factory method making use of variable argument numbers
      java.lang.String getMsgId()  
      java.lang.Object[] getMsgParams()  
      java.lang.String getNumericalId()  
      java.lang.Throwable getRootCause()
      Get the root cause.
      static java.lang.RuntimeException makeRuntimeException​(java.lang.Throwable e, java.lang.String msgId, java.lang.Object... objects)
      Utility to convert a general Throwable to a RuntimeException.
      • 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

      • AlfrescoRuntimeException

        public AlfrescoRuntimeException​(java.lang.String msgId)
        Constructor
        Parameters:
        msgId - the message id
      • AlfrescoRuntimeException

        public AlfrescoRuntimeException​(java.lang.String msgId,
                                        java.lang.Object[] msgParams)
        Constructor
        Parameters:
        msgId - the message id
        msgParams - the message parameters
      • AlfrescoRuntimeException

        public AlfrescoRuntimeException​(java.lang.String msgId,
                                        java.lang.Throwable cause)
        Constructor
        Parameters:
        msgId - the message id
        cause - the exception cause
      • AlfrescoRuntimeException

        public AlfrescoRuntimeException​(java.lang.String msgId,
                                        java.lang.Object[] msgParams,
                                        java.lang.Throwable cause)
        Constructor
        Parameters:
        msgId - the message id
        msgParams - the message parameters
        cause - the exception cause
    • Method Detail

      • create

        public static AlfrescoRuntimeException create​(java.lang.String msgId,
                                                      java.lang.Object... objects)
        Helper factory method making use of variable argument numbers
      • create

        public static AlfrescoRuntimeException create​(java.lang.Throwable cause,
                                                      java.lang.String msgId,
                                                      java.lang.Object... objects)
        Helper factory method making use of variable argument numbers
      • makeRuntimeException

        public static java.lang.RuntimeException makeRuntimeException​(java.lang.Throwable e,
                                                                      java.lang.String msgId,
                                                                      java.lang.Object... objects)
        Utility to convert a general Throwable to a RuntimeException. No conversion is done if the throwable is already a RuntimeException.
        See Also:
        create(Throwable, String, Object...)
      • getMsgId

        public java.lang.String getMsgId()
        Returns:
        the msgId
      • getMsgParams

        public java.lang.Object[] getMsgParams()
        Returns:
        the msgParams
      • getNumericalId

        public java.lang.String getNumericalId()
        Returns:
        the numericalId
      • getRootCause

        public java.lang.Throwable getRootCause()
        Get the root cause.