Top Description Fields Constructors
javax.ws.rs.core

public Class NoContentException

extends IOException
Class Inheritance
Imports
java.io.IOException

An I/O exception thrown by javax.ws.rs.ext.MessageBodyReader implementations when reading a zero-length message content to indicate that the message body reader is not able to produce an instance representing an zero-length message content.

This exception, when thrown while reading a server request entity, is automatically translated by JAX-RS server runtime into a javax.ws.rs.BadRequestException wrapping the original NoContentException and rethrown for a standard processing by the registered exception mappers.

Author
Marek Potociar (marek.potociar at oracle.com)
Since
2.0

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
NoContentException(String
the detail message (which is saved for later retrieval by the getMessage() method).
message
)

Construct a new NoContentException instance.

public
NoContentException(String
the detail message (which is saved for later retrieval by the getMessage() method).
message
,
Throwable
the underlying cause of the exception.
cause
)

Construct a new NoContentException instance.

public
NoContentException(Throwable
the underlying cause of the exception.
cause
)

Construct a new NoContentException instance.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.io.IOException.serialVersionUID.

Constructor Detail

NoContentExceptionback to summary
public NoContentException(String message)

Construct a new NoContentException instance.

Parameters
message:String

the detail message (which is saved for later retrieval by the getMessage() method).

NoContentExceptionback to summary
public NoContentException(String message, Throwable cause)

Construct a new NoContentException instance.

Parameters
message:String

the detail message (which is saved for later retrieval by the getMessage() method).

cause:Throwable

the underlying cause of the exception.

NoContentExceptionback to summary
public NoContentException(Throwable cause)

Construct a new NoContentException instance.

Parameters
cause:Throwable

the underlying cause of the exception.