public class ExceptionUtil extends Object
Constructor and Description |
---|
ExceptionUtil() |
Modifier and Type | Method and Description |
---|---|
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 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 exceptionCopyright © 2017. All rights reserved.