Presentation is loading. Please wait.

Presentation is loading. Please wait.

CWIC Exception & Error Handling Archie Warnock Lingjun Kang Genyong Yu

Similar presentations

Presentation on theme: "CWIC Exception & Error Handling Archie Warnock Lingjun Kang Genyong Yu"— Presentation transcript:

1 CWIC Exception & Error Handling Archie Warnock ( Lingjun Kang ( Genyong Yu (

2 Summary CSW errors return exceptions OpenSearch errors return HTTP status codes

3 Background Error Handling in CSW was implemented primarily through exceptions Most error conditions in shared code base already identified from CSW experience OpenSearch requires errors to be handled via HTTP status codes, not exceptions HTTP Status codes permit server-supplied text which can be used for human-readable error messages Clients can modify the error text returned from the server for explanation to end users

4 CWIC Exceptions Request Exceptions Request Limitations Remote Systems & Communications Errors

5 Request Exception Details CSW Compliance Issues – Invalid XML requests – Invalid GetRecords & GetRecordById CSW requests – Data Validation Issues CWIC Limitations & Conventions – Mandatory dataset ID (GetRecords) – Record ID format (GetRecordById) – Too many records – Unsupported spatial extent – Unsupported temporal range

6 Remote Communication Strategy Trap remote communication problems Try to fix what it can Inform client of unresolved issue – Request timeout – Remote source unreachable – Unrecognized response from remote source – Configuration issues with connectors Details in CWIC Program Exception Handling document on WGISS/CWIC web site

7 OpenSearch Status Code Usage 4xx status codes, i.e., client errors – Refer to errors from the CWIC server (Mediator and Connectors) since the CWIC component do the basic syntax checking on incoming requests. A few may be related to internal CWIC server errors. 5xx status codes, i.e., server errors – Refer to problems in connecting to or parsing responses from the remote data provider system, since these exceptions are generally not correctable nor controllable from the CWIC software.

8 OpenSearch Errors Invalid Request Format (4xx) Search Request Errors (4xx) Request Limitations & Data Validation (4xx) Remote System & Communication Errors (5xx) Other errors - server configuration, NFE, … (5xx)

Download ppt "CWIC Exception & Error Handling Archie Warnock Lingjun Kang Genyong Yu"

Similar presentations

Ads by Google