001/**
002 * Copyright 2005-2016 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.kuali.rice.krad.data.platform;
017
018/**
019 * A runtime exception which indicates that an unsupported database platform was encountered.
020 *
021 * @author Kuali Rice Team (rice.collab@kuali.org)
022 */
023public class UnsupportedDatabasePlatformException extends RuntimeException {
024
025    /**
026     * Creates an unsupported database platform exception.
027     */
028    public UnsupportedDatabasePlatformException() {}
029
030    /**
031     * Creates an unsupported database platform exception.
032     *
033     * @param platformInfo the platform that was in exception.
034     */
035    public UnsupportedDatabasePlatformException(DatabasePlatformInfo platformInfo) {
036        super("Unsupported database platform " + platformInfo.toString());
037    }
038
039    /**
040     * Creates an unsupported database platform exception.
041     *
042     * @param message the message to throw.
043     */
044    public UnsupportedDatabasePlatformException(String message) {
045        super(message);
046    }
047
048    /**
049     * Creates an unsupported database platform exception.
050     *
051     * @param message the message to throw.
052     * @param cause the underlying stacktrace.
053     */
054    public UnsupportedDatabasePlatformException(String message, Throwable cause) {
055        super(message, cause);
056    }
057
058    /**
059     * Creates an unsupported database platform exception.
060     *
061     * @param cause the underlying stacktrace.
062     */
063    public UnsupportedDatabasePlatformException(Throwable cause) {
064        super(cause);
065    }
066}