-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
Hey, with the api v3 changes the error handling seems to have changed somehow, we are seeing lots of FigoExceptions now.
Sadly, this exception isn't helpful in some cases where the underlying ErrorObject of the api returns meaningful information that is not propagated.
Problems:
FigoException
- missing exception message
- often there is only a description and no message, which means the
Exception.messageis null (maybe have a fall back to thedescription?)
- often there is only a description and no message, which means the
- missing error code
- handling is difficult as the
error_codeis often part of the message (404 = 1002 etc)
- handling is difficult as the
- missing
data- in case of schema errors there is no way to tell what is wrong based on the description
Most of these problems could be solved simply by returning the ErrorObject, and adding data to it.
Metadata
Metadata
Assignees
Labels
No labels