Class InvalidEntityException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- de.fraunhofer.iese.mydata.exception.InvalidEntityException
-
- All Implemented Interfaces:
Serializable
public class InvalidEntityException extends Exception
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidEntityException(MyDataEntity entity, String message, Set<javax.validation.ConstraintViolation> violations, Throwable e)
InvalidEntityException(MyDataEntity entity, Set<javax.validation.ConstraintViolation> violations)
InvalidEntityException(MyDataEntity entity, Set<javax.validation.ConstraintViolation> violations, Throwable e)
InvalidEntityException(String message)
InvalidEntityException(String string, Exception e)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<javax.validation.ConstraintViolation>
getConstraintViolations()
String
getMessage()
int
getStatus()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
InvalidEntityException
public InvalidEntityException(MyDataEntity entity, String message, Set<javax.validation.ConstraintViolation> violations, Throwable e)
- Parameters:
entity
-message
-violations
-e
-
-
InvalidEntityException
public InvalidEntityException(String message)
- Parameters:
message
-
-
InvalidEntityException
public InvalidEntityException(MyDataEntity entity, Set<javax.validation.ConstraintViolation> violations)
- Parameters:
entity
-violations
-
-
InvalidEntityException
public InvalidEntityException(MyDataEntity entity, Set<javax.validation.ConstraintViolation> violations, Throwable e)
- Parameters:
entity
-violations
-e
-
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
getConstraintViolations
public Set<javax.validation.ConstraintViolation> getConstraintViolations()
- Returns:
- the list of violations
-
getStatus
public int getStatus()
- Returns:
- the status
-
-