public static < T > IQueryResult < T > errorResult ( Throwable exception ) { return packageResult ( null , CompletionStatus . ERROR , exception == null ? null : Collections . singletonMap ( "exception" , ( Object ) exception ) ) ; }
Returns a query result for an error .