OSDN Git Service

2.102.3-SNAPSHOT 開発開始
[mikutoga/TogaGem.git] / src / main / java / jp / sourceforge / mikutoga / binio / IllegalTextExportException.java
1 /*
2  * illegal text exporting exception
3  *
4  * License : The MIT License
5  * Copyright(c) 2011 MikuToga Partners
6  */
7
8 package jp.sourceforge.mikutoga.binio;
9
10 import java.nio.charset.CharacterCodingException;
11
12 /**
13  * バイナリファイルへの不正なテキスト情報の出力が検出された場合の例外。
14  * {@link java.nio.charset.CharacterCodingException}に由来する異常系を
15  * {@link java.io.IOException}から分離するために設計された。
16  * <p>
17  * 異常系の発生した理由としては
18  * <ul>
19  * <li>所定のフォーマットに対し文字列が長すぎる。
20  * <li>文字エンコーディングできない文字が含まれている
21  * <li>Unicode文字列として既に変。
22  * </ul>
23  * など。
24  */
25 @SuppressWarnings("serial")
26 public class IllegalTextExportException extends Exception {
27
28     /**
29      * コンストラクタ。
30      */
31     public IllegalTextExportException(){
32         super();
33         return;
34     }
35
36     /**
37      * コンストラクタ。
38      * @param message 詳細メッセージ
39      */
40     public IllegalTextExportException(String message){
41         super(message);
42         return;
43     }
44
45     /**
46      * コンストラクタ。
47      * @param cause 原因
48      */
49     public IllegalTextExportException(CharacterCodingException cause){
50         super(cause);
51         return;
52     }
53
54     /**
55      * コンストラクタ。
56      * @param message 詳細メッセージ
57      * @param cause 原因
58      */
59     public IllegalTextExportException(String message,
60                                           CharacterCodingException cause){
61         super(message, cause);
62         return;
63     }
64
65 }