public class ReportedException extends RuntimeException
Constructor and Description |
---|
ReportedException(Throwable e) |
Modifier and Type | Method and Description |
---|---|
static void |
throwIfNecessary(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.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ReportedException(Throwable e)
public static void throwIfNecessary(Throwable error)
error
- The error to be thrownCopyright © 2005–2017 Alfresco Software. All rights reserved.