Java Base64 encoded cryptographic exception handling class code

  • 2020-04-01 03:24:45
  • OfStack

This article describes the Java Base64 encryption, decryption encoding exception handling class, although the code is very short, but can effectively avoid the problem of error in the implementation of Base64 encryption and decryption, here used the com.gootrip.util package, and introduced all the methods of java.io.

The specific function code is 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;
 }
}

Related articles: