org.alfresco.web.ui.common
Class ReportedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.alfresco.web.ui.common.ReportedException
All Implemented Interfaces:
java.io.Serializable

public class ReportedException
extends java.lang.RuntimeException

Unchecked exception wrapping an already-reported exception. The dialog code can use this to detect whether or not to report further to the user.

Since:
3.1
See Also:
Serialized Form

Constructor Summary
ReportedException(java.lang.Throwable e)
           
 
Method Summary
static void throwIfNecessary(java.lang.Throwable error)
          Throws the given exception if we are still in an active transaction, this ensures that we cross the transaction boundary and thus cause the transaction to rollback.
 
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

ReportedException

public ReportedException(java.lang.Throwable e)
Method Detail

throwIfNecessary

public static void throwIfNecessary(java.lang.Throwable error)
Throws the given exception if we are still in an active transaction, this ensures that we cross the transaction boundary and thus cause the transaction to rollback.

Parameters:
error - The error to be thrown
Throws:
java.lang.Throwable


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