public class ValidationException extends Exception
Constructor and Description |
---|
ValidationException(Object source,
Severity severity)
Creates a new validation exception
|
ValidationException(Object source,
Severity severity,
String message)
Creates a new validation exception
|
ValidationException(Object source,
Severity severity,
String message,
String title)
Creates a new validation exception
|
ValidationException(Object source,
Severity severity,
String message,
String title,
Throwable cause)
Creates a new validation exception
|
ValidationException(Object source,
Severity severity,
String message,
Throwable cause)
Creates a new validation exception
|
ValidationException(Object source,
Severity severity,
Throwable cause)
Creates a new validation exception
|
Modifier and Type | Method and Description |
---|---|
Severity |
getSeverity()
Returns the severity of this validation exception.
|
Object |
getSource()
Returns the source object of the exception, in most cases the validated
component.
|
String |
getTitle()
Returns the title of this exception.
|
void |
setSeverity(Severity severity)
Sets the severity of this validation exception.
|
void |
setTitle(String title)
Sets the title going with the message of this exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ValidationException(Object source, Severity severity)
public ValidationException(Object source, Severity severity, String message, Throwable cause)
public ValidationException(Object source, Severity severity, String message, String title, Throwable cause)
public ValidationException(Object source, Severity severity, String message)
public ValidationException(Object source, Severity severity, String message, String title)
public Object getSource()
public void setSeverity(Severity severity)
severity
- the new severitypublic Severity getSeverity()
public void setTitle(String title)
title
- the new titlepublic String getTitle()
Copyright © 2003–2021 XDEV Software. All rights reserved.