public class InvalidContentException extends ApplicationUsageException
| Constructor and Description |
|---|
InvalidContentException(String message,
Constraints constraints)
Create a new instance with a message and constraints.
|
InvalidContentException(String message,
Throwable cause,
Constraints constraints)
Create a new instance with a message, a cause, and constraints.
|
InvalidContentException(Throwable cause,
Constraints constraints)
Create a new instance with a cause, constraints, and a default message.
|
| Modifier and Type | Method and Description |
|---|---|
Constraints |
getConstraints()
Return the constaints that were not satisfied by the input data.
|
String |
getConstraintsId()
Return the identifier of the report that will be used to acknowledge the
users about the failed constraints.
|
void |
setConstraintsId(String id)
Enrich the exception with the identifier of the report that will be used
to acknowledge the users about the constraint failure.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic InvalidContentException(String message, Throwable cause, Constraints constraints)
message - the description of the failure.cause - the underlying cause of the failure.constraints - the constraints that are not satisfied by the input data.public InvalidContentException(String message, Constraints constraints)
message - the description of the failure.constraints - the constraints that are not satisfied by the input data.public InvalidContentException(Throwable cause, Constraints constraints)
cause - the underlying cause of the failure.constraints - the constraints that are not satisfied by the input data.public Constraints getConstraints()
public final void setConstraintsId(String id)
id - the identifier of the report.public final String getConstraintsId()
Copyright (C) 2014, Center for Open Middleware