Package jakarta.ws.rs

Class WebApplicationException

java.lang.Object
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ClientErrorException, RedirectionException, ServerErrorException

public class WebApplicationException extends RuntimeException
Runtime exception for applications.

This exception may be thrown by a resource method, provider or StreamingOutput implementation if a specific HTTP error response needs to be produced. Only effective if thrown prior to the response being committed.

Since:
1.0
See Also: