org.alfresco.error
Class AlfrescoRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.alfresco.error.AlfrescoRuntimeException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CannedQueryException, ScriptException

public class AlfrescoRuntimeException
extends java.lang.RuntimeException

I18n'ed runtime exception thrown by Alfresco code.

See Also:
Serialized Form

Constructor Summary
AlfrescoRuntimeException(java.lang.String msgId)
          Constructor
AlfrescoRuntimeException(java.lang.String msgId, java.lang.Object[] msgParams)
          Constructor
AlfrescoRuntimeException(java.lang.String msgId, java.lang.Object[] msgParams, java.lang.Throwable cause)
          Constructor
AlfrescoRuntimeException(java.lang.String msgId, java.lang.Throwable cause)
          Constructor
 
Method Summary
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()
           
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
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, 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:
AlfrescoRuntimeException.create(Throwable, String, Object...)

getMsgId

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

getMsgParams

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


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.