betodealmeida commented on pull request #13960:
URL: https://github.com/apache/superset/pull/13960#issuecomment-814251319


   > Sometime ago @john-bodley proposed to use this Flask capability: 
https://flask.palletsprojects.com/en/1.1.x/errorhandling/#registering. I like 
the idea, and it seems doable, that way we would not need to implement our own 
decorator for error handling
   
   I agree, I love that pattern. Let me give it a try, it might be easier since 
we register the error handler and then we can gradually change the APIs to 
raise `SupersetErrorException` and `SupersetErrorsException` (or 
`ComandException` initially, but I'd rather have all APIs only returning one of 
the first two).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to