/** * Creates a new user exception builder . * * @see com.dremio.exec.proto.UserBitShared.DremioPBError.ErrorType#IO_EXCEPTION * @return user exception builder */ public static Builder ioExceptionError() { return ioExceptionError(null); }
} catch(IOException ex) { throw UserException.ioExceptionError(ex) .message("No files detected or unable to read file format with selected option.") .build(logger); throw UserException.ioExceptionError() .message("No files were found.") .build(logger); } catch (IOException ex) { throw UserException.ioExceptionError(ex) .message("Unable to read file with selected format.") .build(logger);
private static final RpcException newRPCException(NodeEndpoint endpoint, IOException ioe) { UserRemoteException ure = UserRemoteException.create(UserException .ioExceptionError(ioe) .addIdentity(endpoint) .build(logger).getOrCreatePBError(false)); return new RpcException(ure); } @Test
throw UserException.ioExceptionError() .message("Failed to drop table: %s", PathUtils.constructFullPath(tableSchemaPath)) .build(logger);
throw UserException.dataReadError(e).addIdentity(endpoint).build(logger); } catch (IOException e) { throw UserException.ioExceptionError(e).addIdentity(endpoint).build(logger);