Class AssertUtil


  • public class AssertUtil
    extends Object
    • Constructor Detail

      • AssertUtil

        public AssertUtil()
    • Method Detail

      • assertTrue

        @SnowflakeJdbcInternalApi
        public static void assertTrue​(boolean condition,
                                      String internalErrorMesg)
                               throws SFException
        Assert the condition is true, otherwise throw an internal error exception with the given message.
        Parameters:
        condition - The variable to test the 'truthiness' of
        internalErrorMesg - The error message to display if condition is false
        Throws:
        SFException - Will be thrown if condition is false