Class ErrorHandlerUtils
- java.lang.Object
-
- io.siddhi.core.util.error.handler.util.ErrorHandlerUtils
-
public class ErrorHandlerUtils extends Object
Contains utility methods for the error handler.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringconstructAddErrorRecordString(ComplexEventChunk<StreamEvent> eventChunk, boolean isObjectColumnPresent, io.siddhi.query.api.definition.TableDefinition tableDefinition, Exception e)static StringconstructErrorRecordString(ComplexEventChunk<StateEvent> eventChunk, boolean isObjectColumnPresent, io.siddhi.query.api.definition.TableDefinition tableDefinition, Exception e)static byte[]getAsBytes(Object event)static ObjectgetAsObject(byte[] byteArray)static StringgetOriginalPayloadString(Object originalPayloadAsObject)static byte[]getThrowableStackTraceAsBytes(Throwable throwable)
-
-
-
Method Detail
-
getAsBytes
public static byte[] getAsBytes(Object event) throws IOException
- Throws:
IOException
-
getAsObject
public static Object getAsObject(byte[] byteArray) throws IOException, ClassNotFoundException
- Throws:
IOExceptionClassNotFoundException
-
getThrowableStackTraceAsBytes
public static byte[] getThrowableStackTraceAsBytes(Throwable throwable) throws IOException
- Throws:
IOException
-
getOriginalPayloadString
public static String getOriginalPayloadString(Object originalPayloadAsObject)
-
constructAddErrorRecordString
public static String constructAddErrorRecordString(ComplexEventChunk<StreamEvent> eventChunk, boolean isObjectColumnPresent, io.siddhi.query.api.definition.TableDefinition tableDefinition, Exception e)
-
constructErrorRecordString
public static String constructErrorRecordString(ComplexEventChunk<StateEvent> eventChunk, boolean isObjectColumnPresent, io.siddhi.query.api.definition.TableDefinition tableDefinition, Exception e)
-
-