com.atlassian.bamboo.exception
Class WebValidationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.atlassian.bamboo.exception.WebValidationException
All Implemented Interfaces:
java.io.Serializable

public class WebValidationException
extends java.lang.Exception

Exception to indicate problems with data provided. You should only use this exception in the case of normal operation or 'expected' problems with the data. i.e. validation errors. Contains errorCollection for easy communication back to user.

See Also:
Serialized Form

Constructor Summary
WebValidationException()
           
WebValidationException(ErrorCollection errorCollection)
           
WebValidationException(java.lang.String message)
           
WebValidationException(java.lang.String field, java.lang.String message)
           
 
Method Summary
 ErrorCollection getErrorCollection()
           
 java.lang.String getMessage()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

WebValidationException

public WebValidationException(ErrorCollection errorCollection)

WebValidationException

public WebValidationException(java.lang.String field,
                              java.lang.String message)

WebValidationException

public WebValidationException(java.lang.String message)

WebValidationException

public WebValidationException()
Method Detail

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable

getErrorCollection

public ErrorCollection getErrorCollection()


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.