javax.ws.rs
Class MessageProcessingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by javax.ws.rs.MessageProcessingException
All Implemented Interfaces:
java.io.Serializable

public class MessageProcessingException
extends java.lang.RuntimeException

The exception thrown by JAX-RS runtime in case the processing of a message entity failed in a request or response filter.

Since:
2.0
Author:
Marek Potociar
See Also:
Serialized Form

Constructor Summary
MessageProcessingException(java.lang.String message)
          Constructs a new message processing exception with a specified detail message.
MessageProcessingException(java.lang.String message, java.lang.Throwable cause)
          Constructs a new message processing exception with the specified cause and a detail message.
MessageProcessingException(java.lang.Throwable cause)
          Constructs a new message processing exception with the specified cause and a detail message of (cause==null ? null : cause.toString()).
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MessageProcessingException

public MessageProcessingException(java.lang.Throwable cause)
Constructs a new message processing exception with the specified cause and a detail message of (cause==null ? null : cause.toString()).

Parameters:
cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

MessageProcessingException

public MessageProcessingException(java.lang.String message,
                                  java.lang.Throwable cause)
Constructs a new message processing exception with the specified cause and a detail message.

Parameters:
message - detailed exception message.
cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

MessageProcessingException

public MessageProcessingException(java.lang.String message)
Constructs a new message processing exception with a specified detail message.

Parameters:
message - detailed exception message.


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.