protected String getExceptionStacktrace() { return ExceptionUtil.getExceptionStacktrace(exception); }
protected String getExceptionStacktrace() { return ExceptionUtil.getExceptionStacktrace(exception); }
public String getErrorDetails() { ByteArrayEntity byteArray = getErrorByteArray(); return ExceptionUtil.getExceptionStacktrace(byteArray); }
public String getExceptionStacktrace() { ByteArrayEntity byteArray = getExceptionByteArray(); return ExceptionUtil.getExceptionStacktrace(byteArray); }
/** * Method implementation relies on the command context object, * therefore should be invoked from the commands only * * @return error details persisted in byte array table */ public String getErrorDetails() { ByteArrayEntity byteArray = getErrorByteArray(); return ExceptionUtil.getExceptionStacktrace(byteArray); }
public String getExceptionStacktrace() { ByteArrayEntity byteArray = getExceptionByteArray(); return ExceptionUtil.getExceptionStacktrace(byteArray); }
public String getErrorDetails() { ByteArrayEntity byteArray = getErrorByteArray(); return ExceptionUtil.getExceptionStacktrace(byteArray); }
/** * Method implementation relies on the command context object, * therefore should be invoked from the commands only * * @return error details persisted in byte array table */ public String getErrorDetails() { ByteArrayEntity byteArray = getErrorByteArray(); return ExceptionUtil.getExceptionStacktrace(byteArray); }
public String getExceptionStacktrace() { ByteArrayEntity byteArray = getExceptionByteArray(); return ExceptionUtil.getExceptionStacktrace(byteArray); }
public String getExceptionStacktrace() { ByteArrayEntity byteArray = getExceptionByteArray(); return ExceptionUtil.getExceptionStacktrace(byteArray); }
public Void execute(CommandContext commandContext) { JobEntity jobEntity = getJobEntity(jobId); jobEntity.setRetries(0); jobEntity.setExceptionMessage("Something bad happened"); jobEntity.setExceptionStacktrace(ExceptionUtil.getExceptionStacktrace(new RuntimeException("Something bad happened"))); return null; } });
public HistoryEvent createHistoricJobLogFailedEvt(Job job, Throwable exception) { HistoricJobLogEventEntity event = (HistoricJobLogEventEntity) createHistoricJobLogEvt(job, HistoryEventTypes.JOB_FAIL); if(exception != null) { // exception message event.setJobExceptionMessage(exception.getMessage()); // stacktrace String exceptionStacktrace = getExceptionStacktrace(exception); byte[] exceptionBytes = toByteArray(exceptionStacktrace); ByteArrayEntity byteArray = createJobExceptionByteArray(exceptionBytes, ResourceTypes.HISTORY); byteArray.setRootProcessInstanceId(event.getRootProcessInstanceId()); if (isHistoryRemovalTimeStrategyStart()) { byteArray.setRemovalTime(event.getRemovalTime()); } event.setExceptionByteArrayId(byteArray.getId()); } return event; }
public HistoryEvent createHistoricJobLogFailedEvt(Job job, Throwable exception) { HistoricJobLogEventEntity event = (HistoricJobLogEventEntity) createHistoricJobLogEvt(job, HistoryEventTypes.JOB_FAIL); if(exception != null) { // exception message event.setJobExceptionMessage(exception.getMessage()); // stacktrace String exceptionStacktrace = getExceptionStacktrace(exception); byte[] exceptionBytes = toByteArray(exceptionStacktrace); ByteArrayEntity byteArray = createJobExceptionByteArray(exceptionBytes, ResourceTypes.HISTORY); byteArray.setRootProcessInstanceId(event.getRootProcessInstanceId()); if (isHistoryRemovalTimeStrategyStart()) { byteArray.setRemovalTime(event.getRemovalTime()); } event.setExceptionByteArrayId(byteArray.getId()); } return event; }
protected String getExceptionStacktrace() { return ExceptionUtil.getExceptionStacktrace(exception); }
public String getExceptionStacktrace() { ByteArrayEntity byteArray = getExceptionByteArray(); return ExceptionUtil.getExceptionStacktrace(byteArray); }
public String getErrorDetails() { ByteArrayEntity byteArray = getErrorByteArray(); return ExceptionUtil.getExceptionStacktrace(byteArray); }
/** * Method implementation relies on the command context object, * therefore should be invoked from the commands only * * @return error details persisted in byte array table */ public String getErrorDetails() { ByteArrayEntity byteArray = getErrorByteArray(); return ExceptionUtil.getExceptionStacktrace(byteArray); }
public String getExceptionStacktrace() { ByteArrayEntity byteArray = getExceptionByteArray(); return ExceptionUtil.getExceptionStacktrace(byteArray); }
public Void execute(CommandContext commandContext) { JobEntity jobEntity = getJobEntity(jobId); jobEntity.setRetries(0); jobEntity.setExceptionMessage("Something bad happened"); jobEntity.setExceptionStacktrace(ExceptionUtil.getExceptionStacktrace(new RuntimeException("Something bad happened"))); return null; } });
public HistoryEvent createHistoricJobLogFailedEvt(Job job, Throwable exception) { HistoricJobLogEventEntity event = (HistoricJobLogEventEntity) createHistoricJobLogEvt(job, HistoryEventTypes.JOB_FAIL); if(exception != null) { // exception message event.setJobExceptionMessage(exception.getMessage()); // stacktrace String exceptionStacktrace = getExceptionStacktrace(exception); byte[] exceptionBytes = toByteArray(exceptionStacktrace); ByteArrayEntity byteArray = createJobExceptionByteArray(exceptionBytes, ResourceTypes.HISTORY); byteArray.setRootProcessInstanceId(event.getRootProcessInstanceId()); if (isHistoryRemovalTimeStrategyStart()) { byteArray.setRemovalTime(event.getRemovalTime()); } event.setExceptionByteArrayId(byteArray.getId()); } return event; }