public class NotFoundException extends WebApplicationException
Constructor and Description |
---|
NotFoundException()
Create a HTTP 404 (Not Found) exception.
|
NotFoundException(java.lang.String message)
Create a HTTP 404 (Not Found) exception.
|
NotFoundException(java.lang.String message,
java.net.URI notFoundUri)
Create a HTTP 404 (Not Found) exception.
|
NotFoundException(java.net.URI notFoundUri)
Create a HTTP 404 (Not Found) exception.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage() |
java.net.URI |
getNotFoundUri()
Get the URI that is not found.
|
getResponse
public NotFoundException()
public NotFoundException(java.net.URI notFoundUri)
notFoundUri
- the URI that cannot be found.public NotFoundException(java.lang.String message)
message
- the String that is the entity of the 404 response.public NotFoundException(java.lang.String message, java.net.URI notFoundUri)
message
- the String that is the entity of the 404 response.notFoundUri
- the URI that cannot be found.Copyright © 2016 Oracle Corporation. All Rights Reserved.