Package org.alfresco.error
Class AlfrescoRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.alfresco.error.AlfrescoRuntimeException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CannedQueryException
,ConnectionPoolException
,ScriptException
I18n'ed runtime exception thrown by Alfresco code.
- Author:
- gavinc
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAlfrescoRuntimeException
(String msgId) ConstructorAlfrescoRuntimeException
(String msgId, Object[] msgParams) ConstructorAlfrescoRuntimeException
(String msgId, Object[] msgParams, Throwable cause) ConstructorAlfrescoRuntimeException
(String msgId, Throwable cause) Constructor -
Method Summary
Modifier and TypeMethodDescriptionstatic AlfrescoRuntimeException
Helper factory method making use of variable argument numbersstatic AlfrescoRuntimeException
Helper factory method making use of variable argument numbersgetMsgId()
Object[]
Get the root cause.static RuntimeException
makeRuntimeException
(Throwable e, String msgId, 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
-
Constructor Details
-
AlfrescoRuntimeException
Constructor- Parameters:
msgId
- the message id
-
AlfrescoRuntimeException
Constructor- Parameters:
msgId
- the message idmsgParams
- the message parameters
-
AlfrescoRuntimeException
Constructor- Parameters:
msgId
- the message idcause
- the exception cause
-
AlfrescoRuntimeException
Constructor- Parameters:
msgId
- the message idmsgParams
- the message parameterscause
- the exception cause
-
-
Method Details
-
create
Helper factory method making use of variable argument numbers -
create
Helper factory method making use of variable argument numbers -
makeRuntimeException
Utility to convert a general Throwable to a RuntimeException. No conversion is done if the throwable is already a RuntimeException.- See Also:
-
getMsgId
- Returns:
- the msgId
-
getMsgParams
- Returns:
- the msgParams
-
getNumericalId
- Returns:
- the numericalId
-
getRootCause
Get the root cause.
-