public class ErrorCodeAreaUtils extends java.lang.Object
ErrorCodeAreaUtils
sole purpose is to allow McIDAS-V to associate
the error codes in
AddeException
with any
exceptions generated by AreaAdapter
or
AreaDirectoryList
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
GENERIC_EXCEPTION_MESSAGE |
private static org.slf4j.Logger |
logger |
Modifier | Constructor and Description |
---|---|
private |
ErrorCodeAreaUtils()
Disallow instances of
ErrorCodeAdapter . |
Modifier and Type | Method and Description |
---|---|
static AreaAdapter |
createAreaAdapter(java.lang.String url)
Create an
AreaAdapter using the given url . |
static AreaDirectoryList |
createAreaDirectoryList(java.lang.String url)
Create an
AreaDirectoryList using the given url . |
private static int |
searchStackTrace(java.lang.Throwable cause) |
private static final org.slf4j.Logger logger
public static final java.lang.String GENERIC_EXCEPTION_MESSAGE
private ErrorCodeAreaUtils()
ErrorCodeAdapter
.public static AreaAdapter createAreaAdapter(java.lang.String url) throws AddeException
AreaAdapter
using the given url
.url
- URL
used to locate AREA. Cannot be null
.AreaAdapter
for the given url
,
or null
.AddeException
- if the AreaAdapter
had problems.public static AreaDirectoryList createAreaDirectoryList(java.lang.String url) throws AddeException
AreaDirectoryList
using the given url
.url
- URL
used to create AREA directory list. Cannot be null
.AreaDirectoryList
for the given url
,
or null
.AddeException
- if the AreaDirectoryList
had problems.private static int searchStackTrace(java.lang.Throwable cause)