Interface DiscordExceptionValidator



  • public interface DiscordExceptionValidator
    Validates if discord exceptions are from the correct type.
    • Method Detail

      • validateException

        void validateException​(DiscordException exception)
                        throws AssertionError
        Validates that the exception is used for the HTTP response code it is meant for and vice versa.
        Parameters:
        exception - The exception to check.
        Throws:
        AssertionError - If the exception is invalid.