001 /* 002 // $Id: //open/mondrian/src/main/mondrian/olap/MondrianException.java#5 $ 003 // This software is subject to the terms of the Common Public License 004 // Agreement, available at the following URL: 005 // http://www.opensource.org/licenses/cpl.html. 006 // Copyright (C) 2004-2002 Kana Software, Inc. 007 // Copyright (C) 2004-2005 Julian Hyde and others 008 // All Rights Reserved. 009 // You must accept the terms of that agreement to use this software. 010 */ 011 012 package mondrian.olap; 013 014 /** 015 * Instances of this class are thrown for all exceptions that Mondrian 016 * generates through as a result of known error conditions. It is used in the 017 * resource classes generated from mondrian.resource.MondrianResource.xml. 018 * 019 * @author Galt Johnson (gjabx) 020 * @version $Id: //open/mondrian/src/main/mondrian/olap/MondrianException.java#5 $ 021 * @see org.eigenbase.xom 022 */ 023 public class MondrianException extends RuntimeException { 024 public MondrianException() { 025 super(); 026 } 027 028 public MondrianException(Throwable cause) { 029 super(cause); 030 } 031 032 public MondrianException(String message) { 033 super(message); 034 } 035 036 public MondrianException(String message, Throwable cause) { 037 super(message, cause); 038 } 039 040 public String getLocalizedMessage() { 041 return getMessage(); 042 } 043 044 public String getMessage() { 045 return "Mondrian Error:" + super.getMessage(); 046 } 047 } 048 049 // End MondrianException.java