public static Object readInvocationResult(PlatformContext ctx,BinaryRawReaderEx reader) throws IgniteCheckedException {
  boolean success=reader.readBoolean();
  if (success)   return reader.readObjectDetached();
 else {
    boolean hasException=reader.readBoolean();
    if (hasException) {
      Object nativeErr=reader.readObjectDetached();
      assert nativeErr != null;
      throw ctx.createNativeException(nativeErr);
    }
 else {
      String errMsg=reader.readString();
      assert errMsg != null;
      throw new IgniteCheckedException(errMsg);
    }
  }
}

public static Object readInvocationResult ( PlatformContext ctx , BinaryRawReaderEx reader ) throws IgniteCheckedException { boolean success = reader . readBoolean ( ) ; if ( success ) return reader . readObjectDetached ( ) ; else { boolean hasException = reader . readBoolean ( ) ; if ( hasException ) { Object nativeErr = reader . readObjectDetached ( ) ; assert nativeErr != null ; throw ctx . createNativeException ( nativeErr ) ; } else { String errMsg = reader . readString ( ) ; assert errMsg != null ; throw new IgniteCheckedException ( errMsg ) ; } } }
reads invocation result ( of a job / service / etc ) using a common protocol .
