-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Labels
Description
Currently if FileMaker server returns an error an exception of type FileMakerError is raised. The same exception is used for all error types.
The problem that I am finding is that I now have to parse a lengthy text string to determine what the error actually was. In many instances this wouldn't be an issues, since it's likely to be fatal to the program execution and I'd need to log the exception (for example) and then provide some generic error response.
There are however times when you want to catch a specific error and behave differently for those. Immediate use cases I'm dealing with are
- no records (401)
- validation failed (503 - 507)
Would it be possible to either raise alternative exceptions for these errors, or expose the error code in the current exception?