View Javadoc

    1   /*
    2    * All Rights Reserved.
    3    * Copyright (C) 1999-2005 Tsukuba Bunko.
    4    *
    5    * Licensed under the BSD License ("the License"); you may not use
    6    * this file except in compliance with the License.
    7    * You may obtain a copy of the License at
    8    *
    9    *       http://www.tsukuba-bunko.org/licenses/LICENSE.txt
    10   *
    11   * Unless required by applicable law or agreed to in writing, software
    12   * distributed under the License is distributed on an "AS IS" BASIS,
    13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    14   * See the License for the specific language governing permissions and
    15   * limitations under the License.
    16   *
    17   * $Id: IllegalResourceException.java,v 1.2 2005/07/23 19:06:28 ppoi Exp $
    18   */
    19  package tsukuba_bunko.resource;
    20
    21
    22  /***
    23   * リソースが <code>ResourceManager</code> が利用できない形式である際に
    24   * throw される例外です.
    25   * @author	$Author: ppoi $
    26   * @version	$Revision: 1.2 $
    27   * @see	tsukuba_bunko.resource.ResourceLoader
    28   */
    29  public class IllegalResourceException	extends Exception	{
    30
    31  	/***
    32  	 * serial version UID
    33  	 */
    34  	private static final long	serialVersionUID	= -6759598807838692501L;
    35
    36  	/***
    37  	 * 基の例外オブジェクト
    38  	 */
    39  	private Exception	_source = null;
    40
    41
    42  	/***
    43  	 * <code>IllegalResourceException</code> のインスタンスを作成します.
    44  	 */
    45  	public IllegalResourceException()
    46  	{
    47  		super();
    48  	}
    49
    50  	/***
    51  	 * <code>IllegalResourceException</code> のインスタンスを作成します.
    52  	 * @param	message	エラーメッセージ
    53  	 */
    54  	public IllegalResourceException( String message )
    55  	{
    56  		super( message );
    57  	}
    58
    59  	/***
    60  	 * <code>IllegalResourceException</code> のインスタンスを作成します.
    61  	 * @param	e	基になる例外オブジェクト
    62  	 */
    63  	public IllegalResourceException( Exception e )
    64  	{
    65  		super( e.getMessage() );
    66  		_source = e;
    67  	}
    68
    69
    70  	/***
    71  	 * 基になった例外オブジェクトを取得します.
    72  	 * @return	基の例外オブジェクト
    73  	 */
    74  	public Exception getSourceException()
    75  	{
    76  		return _source;
    77  	}
    78  }