public class ErrorCodeAreaUtils extends 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 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(String url)
Create an
AreaAdapter using the given url . |
static AreaDirectoryList |
createAreaDirectoryList(String url)
Create an
AreaDirectoryList using the given url . |
private static int |
searchStackTrace(Throwable cause) |
private static final org.slf4j.Logger logger
public static final String GENERIC_EXCEPTION_MESSAGE
private ErrorCodeAreaUtils()
ErrorCodeAdapter
.public static AreaAdapter createAreaAdapter(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(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(Throwable cause)