Closed rcdilorenzo closed 10 years ago
Thank you @rcdilorenzo, merged
BTW, what is the plan on merging elixir-0.13.2 into master now that 0.13.2 of elixir is now released?
@rcdilorenzo i think that elixir-0.13.2 support already in weber master
So, could you merge it into master and delete the branch since this PR actually went into the elixir-0.13.2 branch?
See #197.
I've create this pull-request to enable raising a
WeberControllerException
to make data processing and rendering responses such as unauthorized (401) or not found (404) to stop the continuation of the rest of the action from the controller. I'll be adding another commit for documentation as long as this concept is approved to be merged, but the code below is a simple example of how this can be used. I created this for a project that I'm building using weber where I have authentication, but I want to verify the session value and if that fails immediately render 401 without continuing the function.