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