ContentException.java :  » Web-Server » simple » simple » http » serve » Java Open Source

Java Open Source » Web Server » simple 
simple » simple » http » serve » ContentException.java
/*
 * ContentException.java December 2002
 *
 * Copyright (C) 2002, Niall Gallagher <niallg@users.sf.net>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General 
 * Public License along with this library; if not, write to the 
 * Free Software Foundation, Inc., 59 Temple Place, Suite 330, 
 * Boston, MA  02111-1307  USA
 */
 
package simple.http.serve;

import java.io.IOException;

/**
 * The <code>ContentException</code> is thrown when the content
 * factory cannot produce a suitable <code>Content</code> for
 * an issued request URI. The <code>ContentFactory</code> throws
 * this from the <code>getContent</code> method.
 *
 * @author Niall Gallagher
 */
public class ContentException extends IOException {

   /**
    * This empty constructor is used if there is no 
    * explanation of the loading exception required.
    */
   public ContentException(){
      super();
   }

   /**
    * This constructor is used if there is a description
    * of the event that caused the exception required.
    * 
    * @param desc this is a description of the exception
    */
   public ContentException(String desc){
      super(desc);
   }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.