public class EntityException extends EntityBrokerException
| Modifier and Type | Field and Description |
|---|---|
int |
responseCode
This is the response code related to the failure that occurred,
should match with constants in
HttpServletResponse |
entityReference| Constructor and Description |
|---|
EntityException(String message,
String entityReference)
Create an exception to indicate that this entity could not found,
this will trigger an HTTP NOT FOUND error if not caught before reaching the direct servlet,
defaults to not found response
|
EntityException(String message,
String entityReference,
int responseCode)
Create an exception to indicate that this entity could not found,
this will trigger an HTTP NOT FOUND error if not caught before reaching the direct servlet
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic int responseCode
HttpServletResponsepublic EntityException(String message, String entityReference)
message - entityReference - the unique reference to an entitypublic EntityException(String message, String entityReference, int responseCode)
message - entityReference - the unique reference to an entityresponseCode - the response code related to the failure that occurred,
should match with the SC constants in HttpServletResponseCopyright © 2007–2020 Sakai Project. All rights reserved.