All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.xins.server.InvalidRequestException Maven / Gradle / Ivy

There is a newer version: 3.0
Show newest version
/*
 * $Id: InvalidRequestException.java,v 1.12 2007/03/12 10:40:31 agoubard Exp $
 *
 * Copyright 2003-2007 Orange Nederland Breedband B.V.
 * See the COPYRIGHT file for redistribution and use restrictions.
 */
package org.xins.server;

import org.xins.logdoc.ExceptionUtils;

/**
 * Exception that indicates that an incoming request is considered invalid.
 *
 * @version $Revision: 1.12 $ $Date: 2007/03/12 10:40:31 $
 * @author Ernst de Haan
 */
public class InvalidRequestException
extends Exception {

   /**
    * Constructs a new InvalidRequestException with the specified
    * detail message and cause exception.
    *
    * @param message
    *    the message, can be null.
    *
    * @param cause
    *    the cause exception, can be null.
    */
   public InvalidRequestException(String message, Throwable cause) {
      super(message);
      if (cause != null) {
         ExceptionUtils.setCause(this, cause);
      }
   }

   /**
    * Constructs a new InvalidRequestException with the specified
    * detail message.
    *
    * @param message
    *    the message, can be null.
    */
   public InvalidRequestException(String message) {
      this(message, null);
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy