@Override
    protected Object execute(Object[] obj, State state) {
        throw new RuntimeException("Error when running faultAdd()");

    }
Return type of the custom function mentioned

@return return type
modules/siddhi-core/src/test/java/io/siddhi/core/stream/FaultFunctionExtension.java