IT. Expert System.

Java Standard Edition (SE)

ErrorManager


compact1, compact2, compact3
java.util.logging

Class ErrorManager



  • public class ErrorManager
    extends Object
    ErrorManager objects can be attached to Handlers to process any error that occurs 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 Detail

      • GENERIC_FAILURE

        public static final int GENERIC_FAILURE
        GENERIC_FAILURE is used for failure that don't fit into one of the other categories.
        See Also:
        Constant Field Values
      • WRITE_FAILURE

        public static final int WRITE_FAILURE
        WRITE_FAILURE is used when a write to an output stream fails.
        See Also:
        Constant Field Values
      • FLUSH_FAILURE

        public static final int FLUSH_FAILURE
        FLUSH_FAILURE is used when a flush to an output stream fails.
        See Also:
        Constant Field Values
      • CLOSE_FAILURE

        public static final int CLOSE_FAILURE
        CLOSE_FAILURE is used when a close of an output stream fails.
        See Also:
        Constant Field Values
      • OPEN_FAILURE

        public static final int OPEN_FAILURE
        OPEN_FAILURE is used when an open of an output stream fails.
        See Also:
        Constant Field Values
      • FORMAT_FAILURE

        public static final int FORMAT_FAILURE
        FORMAT_FAILURE is used when formatting fails for any reason.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ErrorManager

        public ErrorManager()
    • Method Detail

      • error

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

        This method may be overridden 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


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 277 / 158716318. Delta: 0.02841 с