br.gov.frameworkdemoiselle
Class HttpViolationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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

Nested Class Summary
static class HttpViolationException.Violation
           
 
Constructor Summary
HttpViolationException(int statusCode)
           
 
Method Summary
 HttpViolationException addViolation(String property, String message)
           
 int getStatusCode()
           
 Set<HttpViolationException.Violation> getViolations()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HttpViolationException

public HttpViolationException(int statusCode)
Method Detail

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.