Class RecordException

    • Constructor Detail

      • RecordException

        public RecordException​(String message)
      • RecordException

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

      • check

        public static void check​(boolean isValid,
                                 String message,
                                 Object... args)
        Precondition-style validation that throws a RecordException.
        Parameters:
        isValid - true if valid, false if an exception should be thrown
        message - A String message for the exception.
        args - Args to fill into the message using String.format