KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mondrian > olap > MondrianException


1 /*
2 // $Id: //open/mondrian/src/main/mondrian/olap/MondrianException.java#5 $
3 // This software is subject to the terms of the Common Public License
4 // Agreement, available at the following URL:
5 // http://www.opensource.org/licenses/cpl.html.
6 // Copyright (C) 2004-2002 Kana Software, Inc.
7 // Copyright (C) 2004-2005 Julian Hyde and others
8 // All Rights Reserved.
9 // You must accept the terms of that agreement to use this software.
10 */

11
12 package mondrian.olap;
13
14 /**
15  * Instances of this class are thrown for all exceptions that Mondrian
16  * generates through as a result of known error conditions. It is used in the
17  * resource classes generated from mondrian.resource.MondrianResource.xml.
18  *
19  * @author Galt Johnson (gjabx)
20  * @version $Id: //open/mondrian/src/main/mondrian/olap/MondrianException.java#5 $
21  * @see org.eigenbase.xom
22  */

23 public class MondrianException extends RuntimeException JavaDoc {
24     public MondrianException() {
25         super();
26     }
27
28     public MondrianException(Throwable JavaDoc cause) {
29         super(cause);
30     }
31
32     public MondrianException(String JavaDoc message) {
33         super(message);
34     }
35
36     public MondrianException(String JavaDoc message, Throwable JavaDoc cause) {
37         super(message, cause);
38     }
39
40     public String JavaDoc getLocalizedMessage() {
41         return getMessage();
42     }
43
44     public String JavaDoc getMessage() {
45         return "Mondrian Error:" + super.getMessage();
46     }
47 }
48
49 // End MondrianException.java
50
Popular Tags