protected ErrorEntry constructErrorEntry(int id, long timestamp, String siddhiAppName, String streamName,
                                             byte[] eventAsBytes, String cause, byte[] stackTraceAsBytes,
                                             byte[] originalPayloadAsBytes, ErrorOccurrence errorOccurrence,
                                             ErroneousEventType erroneousEventType, ErrorType errorType)
            throws IOException, ClassNotFoundException {
        String stackTrace = stackTraceAsBytes != null ? (String) ErrorHandlerUtils.getAsObject(stackTraceAsBytes) :
                null;
        String originalPayloadString = originalPayloadAsBytes != null ?
                ErrorHandlerUtils.getOriginalPayloadString(ErrorHandlerUtils.getAsObject(originalPayloadAsBytes)) :
                null;
        return new ErrorEntry(id, timestamp, siddhiAppName, streamName, eventAsBytes, cause, stackTrace,
                originalPayloadString, errorOccurrence, erroneousEventType, errorType);
    }
Denotes the abstract error store in which, error event entries will be stored.
modules/siddhi-core/src/main/java/io/siddhi/core/util/error/handler/store/ErrorStore.java