Class HopsException

All Implemented Interfaces:
Serializable

public class HopsException extends DMLException

Exception occurring in the HOP level.

See Also:
  • Constructor Details

    • HopsException

      public HopsException()
    • HopsException

      public HopsException(String message)
    • HopsException

      public HopsException(Throwable cause)
    • HopsException

      public HopsException(String message, Throwable cause)
  • Method Details

    • check

      public static void check(boolean condition, String message, Object... objects)
      If the condition fails, print the message formatted with objects.
      Parameters:
      condition - Condition to test
      message - Message to print if the condition fails
      objects - Objects to print with the message, as per String.format
    • check

      public static void check(boolean condition, Hop hop, String message, Object... objects)
      If the condition fails, print the Op and its Id, along with the message formatted with objects.
      Parameters:
      condition - Condition to test
      hop - Hop to print as a cause of the problem, if the condition fails
      message - Message to print if the condition fails
      objects - Objects to print with the message, as per String.format