This article describes the Java Base64 encryption and decryption encoding exception handling class. Although the code is very short, it can effectively avoid the problem of execution errors when using Base64 encryption and decryption. The com.gootrip.util package is used here and java.io is introduced. all methods.
The specific function codes are as follows:
package com.gootrip.util;import java.io.*;public class Base64DecodingException extends IOException { private char c; public Base64DecodingException(String message, char c){ super(message); this.c = c; } public char getChar( ){ return c; }}