src/main/java/exception/GlobalExceptionHandler.java
public static void handleException(String name, Exception exception) {

        exception.printStackTrace();

        System.out.println("[" + name + "] :: " + exception.getMessage());

    }
/**
     * Handle normal exception without discord interaction.
     * @param name Name of the class or exception tag
     * @param exception Exception
     *
     */
Handle normal exception without discord interaction.
@param name Name of the class or exception tag
@param exception Exception
Handle normal exception without discord interaction . @param name Name of the class or exception tag @param exception Exception
public static void handleException(String name, Exception exception) {
        exception.printStackTrace();
        System.out.println("[" + name + "] :: " + exception.getMessage());
    }
public static void handleException ( String name , Exception exception ) { exception . printStackTrace ( ) ; System . out . println ( "[" + name + "] :: " + exception . getMessage ( ) ) ; }
Handle normal exception without discord interaction.
Handle normal exception without discord interaction .