/** * 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); }
/** * 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); }
protected void setErrorDetails(String exception) { EnsureUtil.ensureNotNull("exception", exception); byte[] exceptionBytes = toByteArray(exception); ByteArrayEntity byteArray = getErrorByteArray(); if(byteArray == null) { byteArray = createExceptionByteArray(EXCEPTION_NAME,exceptionBytes, ResourceTypes.RUNTIME); errorDetailsByteArrayId = byteArray.getId(); errorDetailsByteArray = byteArray; } else { byteArray.setBytes(exceptionBytes); } }
protected void setErrorDetails(String exception) { EnsureUtil.ensureNotNull("exception", exception); byte[] exceptionBytes = toByteArray(exception); ByteArrayEntity byteArray = getErrorByteArray(); if(byteArray == null) { byteArray = createExceptionByteArray(EXCEPTION_NAME,exceptionBytes, ResourceTypes.RUNTIME); errorDetailsByteArrayId = byteArray.getId(); errorDetailsByteArray = byteArray; } else { byteArray.setBytes(exceptionBytes); } }
/** * 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); }
protected void setErrorDetails(String exception) { EnsureUtil.ensureNotNull("exception", exception); byte[] exceptionBytes = toByteArray(exception); ByteArrayEntity byteArray = getErrorByteArray(); if(byteArray == null) { byteArray = createExceptionByteArray(EXCEPTION_NAME,exceptionBytes, ResourceTypes.RUNTIME); errorDetailsByteArrayId = byteArray.getId(); errorDetailsByteArray = byteArray; } else { byteArray.setBytes(exceptionBytes); } }