1 /* 2 * Copyright [2005] [University Corporation for Advanced Internet Development, Inc.] 3 * 4 * Licensed under the Apache 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.apache.org/licenses/LICENSE-2.0 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.opensaml.common; 17 18 /** 19 * Base exception for SAML related exception. 20 */ 21 public class SAMLException extends Exception { 22 23 /** Serial version UID. */ 24 private static final long serialVersionUID = 6308450535247361691L; 25 26 /** 27 * Constructor. 28 */ 29 public SAMLException() { 30 super(); 31 } 32 33 /** 34 * Constructor. 35 * 36 * @param message exception message 37 */ 38 public SAMLException(String message) { 39 super(message); 40 } 41 42 /** 43 * Constructor. 44 * 45 * @param wrappedException exception to be wrapped by this one 46 */ 47 public SAMLException(Exception wrappedException) { 48 super(wrappedException); 49 } 50 51 /** 52 * Constructor. 53 * 54 * @param message exception message 55 * @param wrappedException exception to be wrapped by this one 56 */ 57 public SAMLException(String message, Exception wrappedException) { 58 super(message, wrappedException); 59 } 60 }