package io.siddhi.core.util.restream.model;

public class MappingFailedEvent {
    private Object event;
    private String cause;

    public MappingFailedEvent(Object event, String cause) {
        this.event = event;
        this.cause = cause;
    }

    public Object getEvent() {
        return event;
    }

    public String getCause() {
        return cause;
    }
}

@@ -94,24 +94,57 @@
 ject event;%0A
+    private Exception exception;%0A
     private 
@@ -273,32 +273,212 @@
 = cause;%0A    %7D%0A%0A
+    public MappingFailedEvent(Object event, Exception exception, String cause) %7B%0A        this.event = event;%0A        this.exception = exception;%0A        this.cause = cause;%0A    %7D%0A%0A
     public Objec
@@ -579,11 +579,82 @@
 e;%0A    %7D
+%0A%0A    public Exception getException() %7B%0A        return exception;%0A    %7D
 %0A%7D%0A

Add exception object to MappingFailedEvent