1 /**
2 * Copyright 2005-2015 The Kuali Foundation
3 *
4 * Licensed under the Educational Community License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.opensource.org/licenses/ecl2.php
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 package org.kuali.rice.krad.data.platform;
17
18 /**
19 * A runtime exception which indicates that an unsupported database platform was encountered.
20 *
21 * @author Kuali Rice Team (rice.collab@kuali.org)
22 */
23 public class UnsupportedDatabasePlatformException extends RuntimeException {
24
25 /**
26 * Creates an unsupported database platform exception.
27 */
28 public UnsupportedDatabasePlatformException() {}
29
30 /**
31 * Creates an unsupported database platform exception.
32 *
33 * @param platformInfo the platform that was in exception.
34 */
35 public UnsupportedDatabasePlatformException(DatabasePlatformInfo platformInfo) {
36 super("Unsupported database platform " + platformInfo.toString());
37 }
38
39 /**
40 * Creates an unsupported database platform exception.
41 *
42 * @param message the message to throw.
43 */
44 public UnsupportedDatabasePlatformException(String message) {
45 super(message);
46 }
47
48 /**
49 * Creates an unsupported database platform exception.
50 *
51 * @param message the message to throw.
52 * @param cause the underlying stacktrace.
53 */
54 public UnsupportedDatabasePlatformException(String message, Throwable cause) {
55 super(message, cause);
56 }
57
58 /**
59 * Creates an unsupported database platform exception.
60 *
61 * @param cause the underlying stacktrace.
62 */
63 public UnsupportedDatabasePlatformException(Throwable cause) {
64 super(cause);
65 }
66 }