001/* 002// $Id: //open/util/resgen/src/org/eigenbase/xom/XOMException.java#3 $ 003// Package org.eigenbase.xom is an XML Object Mapper. 004// Copyright (C) 2005-2005 The Eigenbase Project 005// Copyright (C) 2005-2005 Disruptive Tech 006// Copyright (C) 2005-2005 LucidEra, Inc. 007// Portions Copyright (C) 2001-2005 Kana Software, Inc. and others. 008// 009// This library is free software; you can redistribute it and/or modify it 010// under the terms of the GNU Lesser General Public License as published by the 011// Free Software Foundation; either version 2 of the License, or (at your 012// option) any later version approved by The Eigenbase Project. 013// 014// This library is distributed in the hope that it will be useful, 015// but WITHOUT ANY WARRANTY; without even the implied warranty of 016// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 017// GNU Lesser General Public License for more details. 018// 019// You should have received a copy of the GNU Lesser General Public License 020// along with this library; if not, write to the Free Software 021// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 022// 023// jhyde, 18 June, 2001 024*/ 025 026package org.eigenbase.xom; 027 028/** 029 * XOMException extends Exception and provides detailed error messages for 030 * xom-specific exceptions. 031 */ 032public class XOMException extends Exception { 033 034 /** 035 * Constructs a XOM exception with no message. 036 */ 037 public XOMException() 038 { 039 super(null,null); 040 } 041 042 /** 043 * Constructs an exception with a detailed message. 044 * 045 *@param s - a detailed message describing the specific error 046 */ 047 public XOMException(String s) 048 { 049 super(s,null); 050 } 051 052 /** 053 * Constructs an exception based on another exception, so that 054 * the exceptions may be chained. 055 * @param cause the exception on which this one is based. 056 * @param s a message for this portion of the exception. 057 */ 058 public XOMException(Throwable cause, String s) 059 { 060 super(s,cause); 061 } 062} 063 064// End XOMException.java