Top Description Fields Constructors
jakarta.ws.rs.core

public Class NoContentException

extends IOException
Class Inheritance
Imports
java.io.IOException

An I/O exception thrown by jakarta.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 jakarta.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(final String
the detail message (which is saved for later retrieval by the getMessage() method).
message
)

Construct a new NoContentException instance.

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

Construct a new NoContentException instance.

public
NoContentException(final 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(final 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(final String message, final 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(final Throwable cause)

Construct a new NoContentException instance.

Parameters
cause:Throwable

the underlying cause of the exception.