Class DrillRuntimeException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.drill.common.exceptions.DrillRuntimeException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FunctionValidationException, InvalidIndexDefinitionException, JarValidationException, LogicalPlanParsingException, MetadataException, OversizedAllocationException, SchemaChangeRuntimeException, SchemaParsingException, StateTransitionException, UserException, VersionMismatchException

public class DrillRuntimeException extends RuntimeException
See Also:
  • Constructor Details

    • DrillRuntimeException

      public DrillRuntimeException()
    • DrillRuntimeException

      public DrillRuntimeException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
    • DrillRuntimeException

      public DrillRuntimeException(String message, Throwable cause)
    • DrillRuntimeException

      public DrillRuntimeException(String message)
    • DrillRuntimeException

      public DrillRuntimeException(Throwable cause)
  • Method Details

    • create

      public static DrillRuntimeException create(String format, Object... args)
    • create

      public static DrillRuntimeException create(Throwable cause, String format, Object... args)
    • checkInterrupted

      public static void checkInterrupted()
      This method can be called within loops to check whether the current thread has been interrupted; it ensures that operator implementation can respond to query cancellation in a timely manner.

      Calling this method will result in the following behavior:

      • Throws a runtime exception if current thread interrupt flag has been set
      • Clears current thread interrupt flag