Top Description Fields Constructors
javax.ws.rs

public Class NotSupportedException

extends ClientErrorException
Class Inheritance
Imports
javax.ws.rs.core.Response

A runtime exception indicating that the client request entity media type is not supported.
Authors
Sergey Beryozkin, Marek Potociar
Since
2.0

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
NotSupportedException()

Construct a new unsupported media type exception.

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

Construct a new unsupported media type exception.

public
NotSupportedException(Response
error response.
response
)

Construct a new unsupported media type exception.

public
NotSupportedException(String
the detail message (which is saved for later retrieval by the getMessage() method).
message
,
Response
error response.
response
)

Construct a new unsupported media type exception.

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

Construct a new unsupported media type exception.

public
NotSupportedException(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 unsupported media type exception.

public
NotSupportedException(Response
error response.
response
,
Throwable
the underlying cause of the exception.
cause
)

Construct a new unsupported media type exception.

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

Construct a new unsupported media type exception.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.ws.rs.ClientErrorException.serialVersionUID.

Constructor Detail

NotSupportedExceptionback to summary
public NotSupportedException()

Construct a new unsupported media type exception.

NotSupportedExceptionback to summary
public NotSupportedException(String message)

Construct a new unsupported media type exception.

Parameters
message:String

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

NotSupportedExceptionback to summary
public NotSupportedException(Response response)

Construct a new unsupported media type exception.

Parameters
response:Response

error response.

Exceptions
IllegalArgumentException:
in case the status code set in the response is not HTTP 415.
NotSupportedExceptionback to summary
public NotSupportedException(String message, Response response)

Construct a new unsupported media type exception.

Parameters
message:String

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

response:Response

error response.

Exceptions
IllegalArgumentException:
in case the status code set in the response is not HTTP 415.
NotSupportedExceptionback to summary
public NotSupportedException(Throwable cause)

Construct a new unsupported media type exception.

Parameters
cause:Throwable

the underlying cause of the exception.

NotSupportedExceptionback to summary
public NotSupportedException(String message, Throwable cause)

Construct a new unsupported media type exception.

Parameters
message:String

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

cause:Throwable

the underlying cause of the exception.

NotSupportedExceptionback to summary
public NotSupportedException(Response response, Throwable cause)

Construct a new unsupported media type exception.

Parameters
response:Response

error response.

cause:Throwable

the underlying cause of the exception.

Exceptions
IllegalArgumentException:
in case the status code set in the response is not HTTP 415.
NotSupportedExceptionback to summary
public NotSupportedException(String message, Response response, Throwable cause)

Construct a new unsupported media type exception.

Parameters
message:String

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

response:Response

error response.

cause:Throwable

the underlying cause of the exception.

Exceptions
IllegalArgumentException:
in case the status code set in the response is not HTTP 415.