br.gov.frameworkdemoiselle
Class HttpViolationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
br.gov.frameworkdemoiselle.HttpViolationException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- BadRequestException, ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableException, UnprocessableEntityException
public class HttpViolationException
- extends Exception
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
HttpViolationException
public HttpViolationException(int statusCode)
addViolation
public HttpViolationException addViolation(String message)
addViolation
public HttpViolationException addViolation(String property,
String message)
getViolations
public Set<HttpViolationException.Violation> getViolations()
getStatusCode
public int getStatusCode()
Copyright © 2014 SERPRO - Serviço Federal de Processamento de Dados. All Rights Reserved.