------------------------------------------------------------------------------ To reply, visit https://hellosplat.com/s/beanbag/tickets/4723/ ------------------------------------------------------------------------------
New ticket #4723 by jcannon For Beanbag, Inc. > Djblets Status: New Tags: Priority:Medium, Type:Enhancement ------------------------------------------------------------------------------ Djblets should allow decorated methods to use exceptions for response errors ============================================================================== # What version are you using? master # Which module(s) does this relate to? decorators.py # Describe the enhancement and the motivation for it. I have a decorated method that might respond with some errors, but those errors are generated in a helper method. There's no natural way for me to write the helper method to return error-or-data. The decorated method should be able to `raise djblets.ResponseError(err, info)` to mean error, and just return `info` (which it turns into `(201, info)`). This would greatly improve the code flow of the decorated methods. # Please provide any additional information below. ------------------------------------------------------------------------------ -- You received this message because you are subscribed to the Google Groups "reviewboard-issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/reviewboard-issues. For more options, visit https://groups.google.com/d/optout.
