From: bg <brentgra...@gmail.com>
Date: Fri, 12 Oct 2012 07:15:04 -0700 (PDT)
Local: Fri, Oct 12 2012 10:15 am
Subject: Re: [Lift] Using a Box / Failure and how to set HTTP status code
How would I get the message in the "Failure" using a for comprehension. In my first post - userAllowed functions does some checking, and has for ( extracted <- SomeValue ?~ "param failure error message" # instead of On Friday, October 12, 2012 10:09:19 AM UTC+1, maarten wrote:
> This returns "extracted" wrapped in a Box[SomeType] assuming that > for ( extracted <- SomeValue ?~ "param failure error message" ~> 401) > Of course you can add processing logic in the yield using a helper > Does this help? > --Maarten > On Friday, October 12, 2012, Naftoli Gugenheim wrote: >> On Mon, Oct 8, 2012 at 5:49 PM, David Pollak < >>> Please do not use pattern matching, please use for comprehensions. >> Why? And, how do you handle the Failure case? >> -- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||