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:
java.io.Serializable
- Direct Known Subclasses:
CannedQueryException
,ConnectionPoolException
,ScriptException
@AlfrescoPublicApi public class AlfrescoRuntimeException extends java.lang.RuntimeException
I18n'ed runtime exception thrown by Alfresco code.- Author:
- gavinc
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AlfrescoRuntimeException(java.lang.String msgId)
ConstructorAlfrescoRuntimeException(java.lang.String msgId, java.lang.Object[] msgParams)
ConstructorAlfrescoRuntimeException(java.lang.String msgId, java.lang.Object[] msgParams, java.lang.Throwable cause)
ConstructorAlfrescoRuntimeException(java.lang.String msgId, java.lang.Throwable cause)
Constructor
-
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 numbersstatic AlfrescoRuntimeException
create(java.lang.Throwable cause, java.lang.String msgId, java.lang.Object... objects)
Helper factory method making use of variable argument numbersjava.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.
-
-
-
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 idmsgParams
- the message parameters
-
AlfrescoRuntimeException
public AlfrescoRuntimeException(java.lang.String msgId, java.lang.Throwable cause)
Constructor- Parameters:
msgId
- the message idcause
- the exception cause
-
AlfrescoRuntimeException
public AlfrescoRuntimeException(java.lang.String msgId, java.lang.Object[] msgParams, java.lang.Throwable cause)
Constructor- Parameters:
msgId
- the message idmsgParams
- the message parameterscause
- 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.
-
-