public class ErrorManager extends Object
处理日志记录输出时,如果处理程序遇到问题,而不是将异常返回给日志调用的发行者(谁不太可能感兴趣),则处理程序应调用其关联的ErrorManager。
Modifier and Type | Field and Description |
---|---|
static int |
CLOSE_FAILURE
当关闭输出流失败时使用CLOSE_FAILURE。
|
static int |
FLUSH_FAILURE
当输出流的刷新失败时使用FLUSH_FAILURE。
|
static int |
FORMAT_FAILURE
由于任何原因格式化失败时使用FORMAT_FAILURE。
|
static int |
GENERIC_FAILURE
GENERIC_FAILURE用于不符合其他类别的故障。
|
static int |
OPEN_FAILURE
当输出流的打开失败时使用OPEN_FAILURE。
|
static int |
WRITE_FAILURE
写输出流失败时使用WRITE_FAILURE。
|
Constructor and Description |
---|
ErrorManager() |
public static final int GENERIC_FAILURE
public static final int WRITE_FAILURE
public static final int FLUSH_FAILURE
public static final int CLOSE_FAILURE
public static final int OPEN_FAILURE
public static final int FORMAT_FAILURE
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.