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

org.jboss.resteasy.spi.NotAcceptableException Maven / Gradle / Ivy

There is a newer version: 4.0.0.Beta5
Show newest version
package org.jboss.resteasy.spi;

import javax.ws.rs.core.Response;

/**
 * Thrown by RESTEasy when HTTP Not Acceptable (406) is encountered
 * JAX-RS now has this exception
 *
 * @deprecated Replaced by javax.ws.rs.NotAcceptableException in jaxrs-api module.
 *
 * @see jaxrs-api
 * @see javax.ws.rs.NotAcceptableException
 */
@Deprecated
public class NotAcceptableException extends LoggableFailure
{
   public NotAcceptableException(final String s)
   {
      super(s, 406);
   }

   public NotAcceptableException(final String s, final Response response)
   {
      super(s, response);
   }

   public NotAcceptableException(final String s, final Throwable throwable, final Response response)
   {
      super(s, throwable, response);
   }

   public NotAcceptableException(final String s, final Throwable throwable)
   {
      super(s, throwable, 406);
   }

   public NotAcceptableException(final Throwable throwable)
   {
      super(throwable, 406);
   }

   public NotAcceptableException(final Throwable throwable, final Response response)
   {
      super(throwable, response);
   }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy