Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
JDK 11 java.logging.jmod - Logging Module
JDK 11 java.logging.jmod is the JMOD file for JDK 11 Logging module.
JDK 11 Logging module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\java.logging.jmod.
JDK 11 Logging module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Logging module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\java.logging.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ java/util/logging/ErrorManager.java
/*
* Copyright (c) 2001, 2004, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package java.util.logging;
/**
* ErrorManager objects can be attached to Handlers to process
* any error that occurs on a Handler during Logging.
* <p>
* 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.
*/
public class ErrorManager {
private boolean reported = false;
/*
* We declare standard error codes for important categories of errors.
*/
/**
* GENERIC_FAILURE is used for failure that don't fit
* into one of the other categories.
*/
public final static int GENERIC_FAILURE = 0;
/**
* WRITE_FAILURE is used when a write to an output stream fails.
*/
public final static int WRITE_FAILURE = 1;
/**
* FLUSH_FAILURE is used when a flush to an output stream fails.
*/
public final static int FLUSH_FAILURE = 2;
/**
* CLOSE_FAILURE is used when a close of an output stream fails.
*/
public final static int CLOSE_FAILURE = 3;
/**
* OPEN_FAILURE is used when an open of an output stream fails.
*/
public final static int OPEN_FAILURE = 4;
/**
* FORMAT_FAILURE is used when formatting fails for any reason.
*/
public final static int FORMAT_FAILURE = 5;
/**
* The error method is called when a Handler failure occurs.
* <p>
* 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.
*
* @param msg a descriptive string (may be null)
* @param ex an exception (may be null)
* @param code an error code defined in ErrorManager
*/
public synchronized void error(String msg, Exception ex, int code) {
if (reported) {
// We only report the first error, to avoid clogging
// the screen.
return;
}
reported = true;
String text = "java.util.logging.ErrorManager: " + code;
if (msg != null) {
text = text + ": " + msg;
}
System.err.println(text);
if (ex != null) {
ex.printStackTrace();
}
}
}
⏎ java/util/logging/ErrorManager.java
Or download all of them as a single archive file:
File name: java.logging-11.0.1-src.zip File size: 100595 bytes Release date: 2018-11-04 Download
⇒ JDK 11 java.management.jmod - Management Module
2020-06-16, ≈17🔥, 1💬
Popular Posts:
How to show the XML parsing flow with sax\DocumentTracer.java provided in the Apache Xerces package?...
maven-core-3.5.4.jar is the JAR file for Apache Maven 3.5.4 Core module. Apache Maven is a software ...
maven-embedder-3.8.6.jar is the JAR file for Apache Maven 3.8.6 Embedder module. Apache Maven is a s...
ANTLR is a powerful parser generator for multiple programming languages including Java. ANTLR contai...
The Web Services Description Language for Java Toolkit (WSDL4J), Release 1.6.2, allows the creation,...