Package edu.wisc.ssec.mcidasv.util
Class ErrorCodeAreaUtils
java.lang.Object
edu.wisc.ssec.mcidasv.util.ErrorCodeAreaUtils
ErrorCodeAreaUtils
sole purpose is to allow McIDAS-V to associate
the error codes in
AddeException
with any
exceptions generated by AreaAdapter
or
AreaDirectoryList
.-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Disallow instances ofErrorCodeAdapter
. -
Method Summary
Modifier and TypeMethodDescriptionstatic AreaAdapter
createAreaAdapter
(String url) Create anAreaAdapter
using the givenurl
.static AreaDirectoryList
Create anAreaDirectoryList
using the givenurl
.private static int
searchStackTrace
(Throwable cause)
-
Field Details
-
logger
-
GENERIC_EXCEPTION_MESSAGE
- See Also:
-
-
Constructor Details
-
ErrorCodeAreaUtils
private ErrorCodeAreaUtils()Disallow instances ofErrorCodeAdapter
.
-
-
Method Details
-
createAreaAdapter
Create anAreaAdapter
using the givenurl
.- Parameters:
url
-URL
used to locate AREA. Cannot benull
.- Returns:
- Either the
AreaAdapter
for the givenurl
, ornull
. - Throws:
AddeException
- if theAreaAdapter
had problems.
-
createAreaDirectoryList
Create anAreaDirectoryList
using the givenurl
.- Parameters:
url
-URL
used to create AREA directory list. Cannot benull
.- Returns:
- Either the
AreaDirectoryList
for the givenurl
, ornull
. - Throws:
AddeException
- if theAreaDirectoryList
had problems.
-
searchStackTrace
-