public final class ErrorManager extends Object
| Modifier and Type | Method and Description |
|---|---|
static ErrorWindowFactory |
getErrorWindowFactory()
Gets the default ErrorWindowFactory implementation.
|
static ErrorWindowFactory |
getErrorWindowFactory(Class<?> clazz)
Gets the ErrorWindowFactory implementation for the specified class or its super classes.
|
static void |
setErrorWindowFactory(Class<? extends Throwable> clazz,
ErrorWindowFactory errorWindowFactory)
Sets the ErrorWindowFactory for the specified Throwable class.
|
static void |
setErrorWindowFactory(ErrorWindowFactory errorWindowFactory)
Sets the default ErrorWindowFactory implementation.
|
static void |
showError(Throwable throwable)
Displays an error message for the given Throwable.
|
static void |
showError(Throwable throwable,
String cause)
Displays an error message for the given Throwable with the specified cause message.
|
public static void showError(Throwable throwable)
throwable - the Throwable object for which the error message should be displayedpublic static void showError(Throwable throwable, String cause)
throwable - the Throwable object for which the error message should be displayedcause - the cause for the errorpublic static void setErrorWindowFactory(Class<? extends Throwable> clazz, ErrorWindowFactory errorWindowFactory)
clazz - the class of Throwable for which the ErrorWindowFactory should be seterrorWindowFactory - the ErrorWindowFactory implementation to be set for the specified
classpublic static ErrorWindowFactory getErrorWindowFactory(Class<?> clazz)
clazz - the class for which the ErrorWindowFactory implementation is neededpublic static void setErrorWindowFactory(ErrorWindowFactory errorWindowFactory)
errorWindowFactory - the default ErrorWindowFactory implementation to be setpublic static ErrorWindowFactory getErrorWindowFactory()
Copyright © 2017–2023 Flowing Code. All rights reserved.