Package org.javacord.api.util.exception
Interface DiscordExceptionValidator
-
public interface DiscordExceptionValidatorValidates if discord exceptions are from the correct type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidvalidateException(DiscordException exception)Validates that the exception is used for the HTTP response code it is meant for and vice versa.
-
-
-
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.
-
-