public class ExceptionUtil extends Object
Constructor and Description |
---|
ExceptionUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkConstraintViolationException(ProcessEngineException exception) |
static boolean |
checkForeignKeyConstraintViolation(Throwable cause) |
static boolean |
checkValueTooLongException(ProcessEngineException exception) |
static boolean |
checkVariableIntegrityViolation(Throwable cause) |
static ByteArrayEntity |
createExceptionByteArray(String name,
byte[] byteArray)
create ByteArrayEntity with specified name and payload and make sure it's
persisted
used in Jobs and ExternalTasks
|
static ByteArrayEntity |
createJobExceptionByteArray(byte[] byteArray) |
static List<SQLException> |
findRelatedSqlExceptions(Throwable exception) |
static String |
getExceptionStacktrace(ByteArrayEntity byteArray) |
static String |
getExceptionStacktrace(Throwable exception) |
public static String getExceptionStacktrace(ByteArrayEntity byteArray)
public static ByteArrayEntity createJobExceptionByteArray(byte[] byteArray)
public static ByteArrayEntity createExceptionByteArray(String name, byte[] byteArray)
name
- - type\source of the exceptionbyteArray
- - payload of the exceptionpublic static boolean checkValueTooLongException(ProcessEngineException exception)
public static boolean checkConstraintViolationException(ProcessEngineException exception)
public static List<SQLException> findRelatedSqlExceptions(Throwable exception)
public static boolean checkForeignKeyConstraintViolation(Throwable cause)
public static boolean checkVariableIntegrityViolation(Throwable cause)
Copyright © 2018. All rights reserved.