Skip to main content
Skip table of contents

isTransactionRollback

Versionshinweise

18.1

Code

GROOVY
boolean ScriptUtils.isTransactionRollback(Throwable e)

Beschreibung

Prüft, ob die übergebene Exception durch eine TransactionRolledbackException verursacht wurde.

Parameter

  • e - Die zu prüfende Exception.

Rückgabe

true wenn die Exception durch eine TransactionRolledbackException verursacht wurde, ansonsten false.

Beispiele

GROOVY
try
{
	// throws exception ... 
}
catch(Exception e)
{
	if(ScriptUtils.isTransactionRollback(e))
	{
		// do something ... 
	}
}
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.