Package hudson.util
Class AdministrativeError
java.lang.Object
hudson.model.AbstractModelObject
hudson.model.AdministrativeMonitor
hudson.util.AdministrativeError
- All Implemented Interfaces:
ExtensionPoint
,ModelObject
,SearchableModelObject
,SearchItem
,org.kohsuke.stapler.StaplerProxy
Deprecated.
A convenient
AdministrativeMonitor
implementations that show an error message
and optional stack trace. This is useful for notifying a non-fatal error to the administrator.
These errors are registered when instances are created. No need to use Extension
.
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Modifier and TypeFieldDescriptionfinal Throwable
Deprecated.final String
Deprecated.final String
Deprecated.Fields inherited from class hudson.model.AdministrativeMonitor
id
-
Constructor Summary
ConstructorDescriptionAdministrativeError
(String id, String title, String message, Throwable details) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.Returns true if this monitor is activated and wants to produce a warning message.Methods inherited from class hudson.model.AdministrativeMonitor
all, checkRequiredPermission, disable, doDisable, getDisplayName, getRequiredPermission, getSearchUrl, getTarget, getUrl, hasPermissionToDisplay, hasRequiredPermission, isEnabled, isSecurity
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError, sendError, sendError, sendError
-
Field Details
-
message
Deprecated. -
title
Deprecated. -
details
Deprecated.
-
-
Constructor Details
-
AdministrativeError
Deprecated.- Parameters:
id
- Unique ID that distinguishes this error from other errors. Must remain the same across Hudson executions. Use a caller class name, or something like that.title
- A title of the problem. This is used as the HTML title of the details page. Should be just one sentence, like "ZFS migration error."message
- A short description of the problem. This is used in the "/manage" page, and can include HTML, but it should be still short.details
- An exception indicating the problem. The administrator can see this once they click "more details".
-
-
Method Details
-
isActivated
public boolean isActivated()Deprecated.Description copied from class:AdministrativeMonitor
Returns true if this monitor is activated and wants to produce a warning message.This method is called from the HTML rendering thread, so it should run efficiently.
- Specified by:
isActivated
in classAdministrativeMonitor
-
AdministrativeMonitor
directly instead.