SOS icon indicating copy to clipboard operation
SOS copied to clipboard

Provide list of error messages and "codes"

Open EHJ-52n opened this issue 9 years ago • 3 comments

We should provide a list of errors and which error message are returned by the SOS.

EHJ-52n avatar Jul 01 '15 08:07 EHJ-52n

Well, the exceptionCodes are already listed in the OWS and SOS spec... You don't mean the exact text messages by error messages, right? That would be quite a bit of work:

$ grep "throw " **/src/main/**/*.java | sort | uniq | wc -l
912

And these do not include IOExceptions, HibernateExceptions or XmlExceptions (think of all the possible validation errors), that are just wrapped in a NoApplicableCodeException, you can't possibly list these...

I don't think this effort is worth it and I don't know any web service that lists all of it's error codes. They may list major categories (which would map to our exceptionCodes), but never all possible error messages.

autermann avatar Jul 01 '15 09:07 autermann

Another argument pro such a list: For developers not 100% familiar with the SOS specification could implement clients more easily. "With such a list, I could know potential sources of error before making the error."

EHJ-52n avatar Jul 06 '15 15:07 EHJ-52n

I agree that the OGC specifications already dictate request formats and error codes. Clients should be implementing against the OGC specs, and if there's a mismatch between the spec and the 52n SOS the SOS should be fixed!

srstsavage avatar Jul 08 '15 18:07 srstsavage