Package com.atlassian.bamboo.exception
Class WebValidationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.atlassian.bamboo.exception.WebValidationException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DefaultWebValidationException
public class WebValidationException extends 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
-
-
Field Summary
Fields Modifier and Type Field Description protected ErrorCollection
errorCollection
-
Constructor Summary
Constructors Constructor Description WebValidationException()
WebValidationException(ErrorCollection errorCollection)
Deprecated.since 5.10 useDefaultWebValidationException
insteadWebValidationException(String message)
WebValidationException(String field, String message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorCollection
getErrorCollection()
String
getMessage()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
errorCollection
protected final ErrorCollection errorCollection
-
-
Constructor Detail
-
WebValidationException
@Deprecated public WebValidationException(ErrorCollection errorCollection)
Deprecated.since 5.10 useDefaultWebValidationException
instead
-
WebValidationException
public WebValidationException(String message)
-
WebValidationException
public WebValidationException()
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
getErrorCollection
public ErrorCollection getErrorCollection()
-
-