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.
        exception - The exception to check.
        AssertionError - If the exception is invalid.