Class HopsException

    • Constructor Detail

      • HopsException

        public HopsException()
      • HopsException

        public HopsException​(String message)
      • HopsException

        public HopsException​(Throwable cause)
      • HopsException

        public HopsException​(String message,
                             Throwable cause)
    • Method Detail

      • 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