public static boolean isErrorAndSendException ( ResultSender < Object > resultSender , Object data ) { if ( data instanceof Throwable ) { Throwable e = ( Throwable ) data ; resultSender . sendException ( e ) ; return true ; } return false ; }
Determine if the data should be sent