org.camunda.bpm.engine.impl.util
Class ExceptionUtil

java.lang.Object
  extended by org.camunda.bpm.engine.impl.util.ExceptionUtil

public class ExceptionUtil
extends Object

Author:
Roman Smirnov, Askar Akhmerov

Constructor Summary
ExceptionUtil()
           
 
Method Summary
static boolean checkValueTooLongException(ProcessEngineException exception)
           
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionUtil

public ExceptionUtil()
Method Detail

getExceptionStacktrace

public static String getExceptionStacktrace(Throwable exception)

getExceptionStacktrace

public static String getExceptionStacktrace(ByteArrayEntity byteArray)

createJobExceptionByteArray

public static ByteArrayEntity createJobExceptionByteArray(byte[] byteArray)

createExceptionByteArray

public 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

Parameters:
name - - type\source of the exception
byteArray - - payload of the exception
Returns:
persisted entity

checkValueTooLongException

public static boolean checkValueTooLongException(ProcessEngineException exception)


Copyright © 2017 camunda services GmbH. All rights reserved.