Message Resolution Error on Invalid Credentials
Cantor, Scott
cantor.2 at osu.edu
Wed Jul 23 14:00:23 EDT 2014
On 7/23/14, 1:57 PM, "Cantor, Scott" <cantor.2 at osu.edu> wrote:
>
>>That doesn't look right; I believe it should be the following:
>>
>>Constraint.isFalse(Strings.isNullOrEmpty(msg), "Message cannot be null
>>or empty");
>
>We're treating constraints as explicit, so if they fire, it's a bug,
>either in the constraint itself or the caller.
And I see what you mean now anyway, yeah, that's just a bug.
But the underlying issue is that e.getMessage() is Nullable and I'm
passing that into a Nonnull parameter, so that's what the constraints are
meant to tell us.
-- Scott
More information about the dev
mailing list