public final class InvalidEntityException extends APIException
This exception should be thrown when the intrinsic attributes of an entity are known to violate one of the constraints on a PageSeeder.
Examples: an invalid email address, a string value exceeding a maximum length.
Note: this exception may not be appropriate for when extrinsic constraints are violated for example, for unique identifier.
Constructor and Description |
---|
InvalidEntityException(Class<? extends PSEntity> entity,
EntityValidity validity)
Create a new exception.
|
Modifier and Type | Method and Description |
---|---|
Class<? extends PSEntity> |
getEntityType() |
EntityValidity |
getValidity() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public InvalidEntityException(Class<? extends PSEntity> entity, EntityValidity validity)
entity
- The entity that is invalid.validity
- The entity validity status.public EntityValidity getValidity()
Copyright © 2016 Allette Systems. All rights reserved.