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
ConstructorsModifierConstructorDescriptionprivateDisallow instances ofErrorCodeAdapter. -
Method Summary
Modifier and TypeMethodDescriptionstatic AreaAdaptercreateAreaAdapter(String url) Create anAreaAdapterusing the givenurl.static AreaDirectoryListCreate anAreaDirectoryListusing the givenurl.private static intsearchStackTrace(Throwable cause)
-
Field Details
-
logger
-
GENERIC_EXCEPTION_MESSAGE
- See Also:
-
-
Constructor Details
-
ErrorCodeAreaUtils
private ErrorCodeAreaUtils()Disallow instances ofErrorCodeAdapter.
-
-
Method Details
-
createAreaAdapter
Create anAreaAdapterusing the givenurl.- Parameters:
url-URLused to locate AREA. Cannot benull.- Returns:
- Either the
AreaAdapterfor the givenurl, ornull. - Throws:
AddeException- if theAreaAdapterhad problems.
-
createAreaDirectoryList
Create anAreaDirectoryListusing the givenurl.- Parameters:
url-URLused to create AREA directory list. Cannot benull.- Returns:
- Either the
AreaDirectoryListfor the givenurl, ornull. - Throws:
AddeException- if theAreaDirectoryListhad problems.
-
searchStackTrace
-