Package org.jdesktop.swingx.error
Interface ErrorReporter
-
public interface ErrorReporter
ErrorReporter is used by
JXErrorPane
to implement a pluggable error reporting API. For example, aJXErrorPane
may use anEmailErrorReporter
, or aLogErrorReporter
, or perhaps even anRSSErrorReporter
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
reportError(ErrorInfo info)
Reports an error based on the givenErrorInfo
.
-
-
-
Method Detail
-
reportError
void reportError(ErrorInfo info) throws java.lang.NullPointerException
Reports an error based on the given
ErrorInfo
. This method may be a long running method, and so should not block the EDT in any way. If an error occurs while reporting the error, it must not throw an exception from this method. If an error dialog causes another error, it should be silently swallowed. If proper heuristics can be used, an attempt can be made some time later to re-report failed error reports, but such attempts should be transparent to the user.- Parameters:
info
- encapsulates all information to report using this facility. Must not be null.- Throws:
thrown
- if the info param is nulljava.lang.NullPointerException
-
-