From 9bee2568fb44bd46ff230de7dcac2ab354f40f8e Mon Sep 17 00:00:00 2001 From: Ulrik Sandberg Date: Tue, 9 Jan 2007 23:15:29 +0000 Subject: [PATCH] Preparing to replace the exceptions. --- .../ldap/UncategorizedLdapException.java | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 spring-ldap/src/main/java/org/springframework/ldap/UncategorizedLdapException.java diff --git a/spring-ldap/src/main/java/org/springframework/ldap/UncategorizedLdapException.java b/spring-ldap/src/main/java/org/springframework/ldap/UncategorizedLdapException.java new file mode 100644 index 00000000..d1e42f9d --- /dev/null +++ b/spring-ldap/src/main/java/org/springframework/ldap/UncategorizedLdapException.java @@ -0,0 +1,38 @@ +/* + * Copyright 2002-2005 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.springframework.ldap; + +/** + * NamingException to be thrown when no other matching subclass is found. + * + * @author Ulrik Sandberg + * @since 1.2 + */ +public class UncategorizedLdapException extends NamingException { + + public UncategorizedLdapException(String msg) { + super(msg); + } + + public UncategorizedLdapException(String msg, Throwable cause) { + super(msg, cause); + } + + public UncategorizedLdapException(Throwable cause) { + super("Uncategorized exception occured during LDAP processing", cause); + } +}