public static HyracksDataException create(int code, Throwable cause, SourceLocation sourceLoc, Serializable... params) { return new HyracksDataException(ErrorCode.HYRACKS, code, ErrorCode.getErrorMessage(code), cause, sourceLoc, params); }
public static HyracksException create(int code, Serializable... params) { return new HyracksException(ErrorCode.HYRACKS, code, ErrorCode.getErrorMessage(code), params); }
public final static int getStartPointCoordinateOffset(Coordinate coordinate) throws HyracksDataException { switch (coordinate) { case X: return 1; case Y: return 9; default: throw new HyracksDataException("Wrong coordinate"); } }
public long getNumElements() throws HyracksDataException { if (!isActivated) { throw HyracksDataException.create(ErrorCode.CANNOT_GET_NUMBER_OF_ELEMENT_FROM_INACTIVE_FILTER); } return numElements; }
private void checkJob(JobRun jobRun) throws HyracksException { if (jobRun == null) { throw HyracksException.create(ErrorCode.INVALID_INPUT_PARAMETER); } }
public void setData(int data) throws NetException { if (data > MAX_DATA_VALUE) { throw new NetException("data " + data + " exceeds " + MAX_DATA_VALUE); } this.data = data; }
@Override public String toString() { return getLocalizedMessage(); } }
public HyracksDataException(String component, int errorCode, String message, Throwable cause, String nodeId, StackTraceElement[] stackTrace, Serializable... params) { super(component, errorCode, message, cause, nodeId, params); setStackTrace(stackTrace); }
/** * Push tuples in the frame forward to the next operator/consumer. * The flushed tuples don't have to be all tuples in the frame. * * @throws HyracksDataException */ public default void flushPartialFrame() throws HyracksDataException { throw new HyracksDataException("flushPartialFrame() is not supported in this ILSMIndexFrameWriter"); } }
public static HyracksDataException create(int code, SourceLocation sourceLoc, Serializable... params) { return new HyracksDataException(ErrorCode.HYRACKS, code, ErrorCode.getErrorMessage(code), null, sourceLoc, params); }
@Override public boolean modify(ILSMIndexOperationContext ctx, boolean tryOperation, ITupleReference tuple) throws HyracksDataException { throw HyracksDataException.create(ErrorCode.MODIFY_NOT_SUPPORTED_IN_EXTERNAL_INDEX); }
@Override public void doRun() throws HyracksException { throw HyracksException.create(ErrorCode.DEPLOYED_JOB_FAILURE, deployedJobSpecId, nodeId); } }
public static HyracksException create(int code, Throwable cause, Serializable... params) { return new HyracksException(ErrorCode.HYRACKS, code, ErrorCode.getErrorMessage(code), cause, params); }
public final static int getCoordinateOffset(Coordinate coordinate) throws HyracksDataException { switch (coordinate) { case X: return 1; case Y: return 9; default: throw new HyracksDataException("Wrong coordinate"); } } }
public static HyracksDataException create(int code, Throwable cause, Serializable... params) { return new HyracksDataException(ErrorCode.HYRACKS, code, ErrorCode.getErrorMessage(code), cause, params); }
@Override public void put(ITreeIndexMetadataFrame frame, IValueReference key, IValueReference value) throws HyracksDataException { throw new HyracksDataException("Unsupported Operation"); }
public static HyracksDataException create(int code, Serializable... params) { return new HyracksDataException(ErrorCode.HYRACKS, code, ErrorCode.getErrorMessage(code), params); }
public final static int getUpperRightCoordinateOffset(Coordinate coordinate) throws HyracksDataException { switch (coordinate) { case X: return 17; case Y: return 25; default: throw new HyracksDataException("Wrong coordinate"); } } }
@Override public int read() throws IOException { throw new HyracksDataException( "read() is not supported with this stream. use read(byte[] b, int off, int len)"); }
@Override public Object call() throws HyracksDataException { count++; throw new HyracksDataException(errorMessage); }