com.atlassian.confluence.api.service.exceptions
Class BadRequestException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.atlassian.confluence.api.service.exceptions.ServiceException
                  extended by com.atlassian.confluence.api.service.exceptions.BadRequestException
All Implemented Interfaces:
WithValidationResult, java.io.Serializable

public class BadRequestException
extends ServiceException
implements WithValidationResult

Thrown when the data in the incoming request is incomplete or otherwise invalid. This exception can handle the case where multiple validation errors occur, in which case the errors should be returned to the client.

See Also:
Serialized Form

Constructor Summary
BadRequestException()
           
BadRequestException(java.lang.String message)
           
BadRequestException(java.lang.String message, java.lang.Throwable throwable)
           
BadRequestException(java.lang.String message, ValidationResult validationResult)
           
BadRequestException(java.lang.Throwable throwable)
           
 
Method Summary
 ValidationResult getValidationResult()
           
 
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

BadRequestException

public BadRequestException()

BadRequestException

public BadRequestException(java.lang.String message)

BadRequestException

public BadRequestException(java.lang.Throwable throwable)

BadRequestException

public BadRequestException(java.lang.String message,
                           java.lang.Throwable throwable)

BadRequestException

public BadRequestException(java.lang.String message,
                           ValidationResult validationResult)
Method Detail

getValidationResult

public ValidationResult getValidationResult()
Specified by:
getValidationResult in interface WithValidationResult


Copyright © 2003-2014 Atlassian. All Rights Reserved.