public class ExceptionDiags extends Object
Modifier and Type | Field and Description |
---|---|
static String |
HADOOP_WIKI
Base URL of the Hadoop Wiki: "http://wiki.apache.org/hadoop/"
|
static String |
UNKNOWN_HOST
text included in wrapped exceptions if the host is null: "(unknown)"
|
Constructor and Description |
---|
ExceptionDiags() |
Modifier and Type | Method and Description |
---|---|
static IOException |
wrapException(String dest,
String operation,
IOException exception)
Take an IOException and a URI, wrap it where possible with
something that includes the URI
|
public static final String UNKNOWN_HOST
public static final String HADOOP_WIKI
public static IOException wrapException(String dest, String operation, IOException exception)
dest
- target URIoperation
- operationexception
- the caught exception.Copyright © 2017 Apache Software Foundation. All Rights Reserved.