Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only raise subclasses of Response in our algorithm funcs #304

Open
chadwhitacre opened this issue Feb 19, 2014 · 1 comment
Open

only raise subclasses of Response in our algorithm funcs #304

chadwhitacre opened this issue Feb 19, 2014 · 1 comment

Comments

@chadwhitacre
Copy link
Contributor

Reticketed from #249. The purpose is to provide fine-grained control over handling specific exception cases.

@chadwhitacre
Copy link
Contributor Author

IRC

The idea is that we'd do raise FileNotFound() during dispatch instead of raise Response(404). Each exception subclass would be raised from exactly one place, so you'd have fine-grained control when catching. And if we implement this right, then @zwn could monkey-patch FileNotFound to provide custom behavior without having to implement an algorithm function to catch it.

@chadwhitacre chadwhitacre changed the title only raise subclasses of Response in Aspen core only raise subclasses of Response in our algorithm funcs Mar 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant