Class InvalidInput

Direct Known Subclasses:
InvalidSqlInput

public class InvalidInput extends BaseFailure
A failure type used to make DruidExceptions of category DruidException.Category.INVALID_INPUT for persona DruidException.Persona.USER.
  • Constructor Details

  • Method Details

    • exception

      public static DruidException exception(String msg, Object... args)
    • exception

      public static DruidException exception(Throwable t, String msg, Object... args)
    • conditionalException

      public static void conditionalException(boolean condition, String msg, Object... args)
      evalues a condition. If it's false, it throws the appropriate DruidException
      Parameters:
      condition - - boolean condition to validate
      msg - - passed through to DruidException.exception()
      args - - passed through to DruidException.exception()
    • notNull

      public static <T> T notNull(@Nullable T val, String name)
    • conditionalException

      public static void conditionalException(boolean condition, Throwable t, String msg, Object... args)
      evalues a condition. If it's false, it throws the appropriate DruidException with a given cause
      Parameters:
      condition - - boolean condition to validate
      t - - throwable to pass to InvalidInput.exception()
      msg - - passed through to InvalidInput.exception()
      args - - passed through to InvalidInput.exception()