001/*
002 *  Licensed to the Apache Software Foundation (ASF) under one
003 *  or more contributor license agreements.  See the NOTICE file
004 *  distributed with this work for additional information
005 *  regarding copyright ownership.  The ASF licenses this file
006 *  to you under the Apache License, Version 2.0 (the
007 *  "License"); you may not use this file except in compliance
008 *  with the License.  You may obtain a copy of the License at
009 *  
010 *    http://www.apache.org/licenses/LICENSE-2.0
011 *  
012 *  Unless required by applicable law or agreed to in writing,
013 *  software distributed under the License is distributed on an
014 *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015 *  KIND, either express or implied.  See the License for the
016 *  specific language governing permissions and limitations
017 *  under the License. 
018 *  
019 */
020
021package org.apache.directory.api.util.exception;
022
023
024/**
025 * This exception is thrown when a Backend operation is either temporarily
026 * unsupported or perminantly unsupported as part of its implementation. Write
027 * operations on a backend set to readonly throw a type of unsupported exception
028 * called ReadOnlyException.
029 * 
030 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
031 */
032public class NotImplementedException extends RuntimeException
033{
034    /** The serialVersionUID. */
035    static final long serialVersionUID = -5899307402675964298L;
036
037
038    /**
039     * Constructs an Exception with a detailed message.
040     */
041    public NotImplementedException()
042    {
043        super( "N O T   I M P L E M E N T E D   Y E T !" );
044    }
045
046
047    /**
048     * Constructs an Exception with a detailed message.
049     * 
050     * @param msg The message associated with the exception.
051     */
052    public NotImplementedException( String msg )
053    {
054        super( "N O T   I M P L E M E N T E D   Y E T !\n" + msg );
055    }
056}