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

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

The newest version!
package org.jboss.resteasy.spi;

import javax.ws.rs.core.Response;

/**
 * Any exception thrown by a MessageBodyReader chain that is not an instance of a ReaderException is caught internally
 * by the Resteasy runtime and wrapped with an instance of ReaderException.
 *
 * If you want to have special exception handling for exceptions thrown by MessageBodyReaders, then write an exception
 * mapper for ReaderException.
 *
 * Also, you may extend this class and throw instances of it from your MessageBodyReaders (and interceptors)
 *
 * @author Bill Burke
 * @version $Revision: 1 $
 */
public class ReaderException extends Failure
{
   public ReaderException(String s, Response response)
   {
      super(s, response);
   }

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

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

   public ReaderException(String s, Throwable throwable)
   {
      super(s, throwable, -1);
   }

   public ReaderException(Throwable throwable)
   {
      super(throwable, -1);
   }

   public ReaderException(String s)
   {
      super(s, -1);
   }

   public ReaderException(int errorCode)
   {
      super(errorCode);
   }

   public ReaderException(String s, int errorCode)
   {
      super(s, errorCode);
   }

   public ReaderException(String s, Throwable throwable, int errorCode)
   {
      super(s, throwable, errorCode);
   }

   public ReaderException(Throwable throwable, int errorCode)
   {
      super(throwable, errorCode);
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy