Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

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:
AuthenticationException, ContentIOException, DictionaryException, FileExistsException, InvalidAspectException, InvalidTypeException, LockAcquisitionException, MalformedNodeRefException, NoSuchPersonException, NoTransformerException, TooBusyException, UnsupportedTransformationException

public class AlfrescoRuntimeException
extends RuntimeException
I18n'ed runtime exception thrown by Alfresco code.
Author:
gavinc
See Also:
Serialized Form

Constructor Summary
AlfrescoRuntimeException(String msgId)
          Constructor
AlfrescoRuntimeException(String msgId, Object[] msgParams)
          Constructor
AlfrescoRuntimeException(String msgId, Object[] msgParams, Throwable cause)
          Constructor
AlfrescoRuntimeException(String msgId, Throwable cause)
          Constructor
Method Summary
create(String msgId, Object... objects)
          Helper factory method making use of variable argument numbers
create(Throwable cause, String msgId, Object... objects)
          Helper factory method making use of variable argument numbers
getMsgId()
getMsgParams()
getNumericalId()
getRootCause()
          Get the root cause.
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Constructor Detail
AlfrescoRuntimeException
public AlfrescoRuntimeException(String msgId)
Constructor
Parameters:
msgId - the message id

AlfrescoRuntimeException
public AlfrescoRuntimeException(String msgId,
                                Object[] msgParams)
Constructor
Parameters:
msgId - the message id
msgParams - the message parameters

AlfrescoRuntimeException
public AlfrescoRuntimeException(String msgId,
                                Throwable cause)
Constructor
Parameters:
msgId - the message id
cause - the exception cause

AlfrescoRuntimeException
public AlfrescoRuntimeException(String msgId,
                                Object[] msgParams,
                                Throwable cause)
Constructor
Parameters:
msgId - the message id
msgParams - the message parameters
cause - the exception cause
Method Detail
create
public static AlfrescoRuntimeException create(String msgId,
                                              Object... objects)
Helper factory method making use of variable argument numbers

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

makeRuntimeException
public static RuntimeException makeRuntimeException(Throwable e,
                                                    String msgId,
                                                    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 String getMsgId()
Returns:
the msgId

getMsgParams
public Object[] getMsgParams()
Returns:
the msgParams

getNumericalId
public String getNumericalId()
Returns:
the numericalId

getRootCause
public Throwable getRootCause()
Get the root cause.

Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Copyright © 2005–2016 Alfresco Software. All rights reserved.

Java API documentation generated with DocFlex/Javadoc 1.6.1 using JavadocPro template set.