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

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

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

import javax.ws.rs.core.Response;

/**
 * Thrown by RESTEasy when HTTP Unsupported Media Type (415) is encountered
 * JAX-RS now has this exception
 * 
 * @deprecated Replaced by javax.ws.rs.NotSupportedException in jaxrs-api module.
 * 
 * @see jaxrs-api
 * @see javax.ws.rs.NotSupportedException
 */
@Deprecated
public class UnsupportedMediaTypeException extends LoggableFailure
{

   public UnsupportedMediaTypeException(String s)
   {
      super(s, 415);
   }

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

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

   public UnsupportedMediaTypeException(String s, Throwable throwable)
   {
      super(s, throwable, 415);
   }

   public UnsupportedMediaTypeException(Throwable throwable)
   {
      super(throwable, 415);
   }

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


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy