This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


java.util.logging
class ErrorManager

java.lang.Object extended by java.util.logging.ErrorManager

public class ErrorManager
extends Object

ErrorManager objects can be attached to Handlers to process any error that occur on a Handler during Logging.

When processing logging output, if a Handler encounters problems then rather than throwing an Exception back to the issuer of the logging call (who is unlikely to be interested) the Handler should call its associated ErrorManager.


Field Summary
static int CLOSE_FAILURE
          CLOSE_FAILURE is used when a close of an output stream fails.
static int FLUSH_FAILURE
          FLUSH_FAILURE is used when a flush to an output stream fails.
static int FORMAT_FAILURE
          FORMAT_FAILURE is used when formatting fails for any reason.
static int GENERIC_FAILURE
          GENERIC_FAILURE is used for failure that don't fit into one of the other categories.
static int OPEN_FAILURE
          OPEN_FAILURE is used when an open of an output stream fails.
static int WRITE_FAILURE
          WRITE_FAILURE is used when a write to an output stream fails.
 
Constructor Summary

          
 
Method Summary
 void
error(String msg, Exception ex, int code)

          The error method is called when a Handler failure occurs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLOSE_FAILURE

public static final int CLOSE_FAILURE
CLOSE_FAILURE is used when a close of an output stream fails.

FLUSH_FAILURE

public static final int FLUSH_FAILURE
FLUSH_FAILURE is used when a flush to an output stream fails.

FORMAT_FAILURE

public static final int FORMAT_FAILURE
FORMAT_FAILURE is used when formatting fails for any reason.

GENERIC_FAILURE

public static final int GENERIC_FAILURE
GENERIC_FAILURE is used for failure that don't fit into one of the other categories.

OPEN_FAILURE

public static final int OPEN_FAILURE
OPEN_FAILURE is used when an open of an output stream fails.

WRITE_FAILURE

public static final int WRITE_FAILURE
WRITE_FAILURE is used when a write to an output stream fails.
Constructor Detail

ErrorManager

public ErrorManager()
Method Detail

error

public synchronized void error(String msg,
                               Exception ex,
                               int code)
The error method is called when a Handler failure occurs.

This method may be overriden in subclasses. The default behavior in this base class is that the first call is reported to System.err, and subsequent calls are ignored.

Parameters:
msg - a descriptive string (may be null)
ex - an exception (may be null)
code - an error code defined in ErrorManager


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.