package com.gootrip.util;
/*
* Base64 decoding exception.
* Copyright (C) 2002 Stephen Ostermiller
* http://ostermiller.org/contact.pl?regarding=Java+Utilities
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* See COPYING.TXT for details.
*/
import java.io.*;
/**
* Exception that is thrown when an unexpected character is encountered
* during Base64 decoding. One could catch this exception and use
* the unexpected character for some other purpose such as including it
* with data that comes at the end of a Base64 encoded section of an email
* message.
*
* @author Stephen Ostermiller http://ostermiller.org/contact.pl?regarding=Java+Utilities
* @since ostermillerutils 1.00.00
*/
public class Base64DecodingException extends IOException {
private char c;
/**
* Construct an new exception.
*
* @param message message later to be returned by a getMessage() call.
* @param c character that caused this error.
*
* @since ostermillerutils 1.00.00
*/
public Base64DecodingException(String message, char c){
super(message);
this.c = c;
}
/**
* Get the character that caused this error.
*
* @return the character that caused this error.
*
* @since ostermillerutils 1.00.00
*/
public char getChar(){
return c;
}
}
最近下载更多
飘逸的云 LV1
2023年7月6日
linmou LV8
2023年3月19日
tangjj7260 LV18
2021年11月12日
2469095052 LV8
2021年3月3日
txl_816278800190 LV1
2020年10月30日
moomin709 LV24
2020年7月6日
dhc0611 LV1
2020年4月12日
tim_chen LV5
2020年3月28日
BCatZSY LV7
2020年2月10日
洋洋阳阳 LV7
2020年2月3日
最近浏览更多
飘逸的云 LV1
2023年7月6日
linmou LV8
2023年3月19日
二进制2 LV3
2023年1月6日
al-aaalll LV3
2022年12月13日
刘君88888
2022年8月6日
暂无贡献等级
最代码-宋家辉 LV61
2022年7月16日
crosa_Don LV18
2022年4月1日
微信网友_5824345614176256
2022年2月8日
暂无贡献等级
Java-smalllong
2022年1月24日
暂无贡献等级
duqiangedu LV3
2021年12月16日

