OSDN Git Service

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