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,
ResourceType type)
create ByteArrayEntity with specified name and payload and make sure it's
persisted
used in Jobs and ExternalTasks
|
static ByteArrayEntity |
createJobExceptionByteArray(byte[] byteArray,
ResourceType type) |
static org.apache.ibatis.executor.BatchExecutorException |
findBatchExecutorException(Throwable exception) |
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, ResourceType type)
public static ByteArrayEntity createExceptionByteArray(String name, byte[] byteArray, ResourceType type)
name
- - type\source of the exceptionbyteArray
- - payload of the exceptiontype
- - resource type 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)
public static org.apache.ibatis.executor.BatchExecutorException findBatchExecutorException(Throwable exception)
Copyright © 2020. All rights reserved.