org.xins.server.InvalidRequestException Maven / Gradle / Ivy
/*
* $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);
}
}