Add relevant exception message for checkArgumentNotNull usage

I ran into this while writing some other code and having the exception message
would have made it easier to debug.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=199292321
This commit is contained in:
mcilwain 2018-06-05 07:14:13 -07:00 committed by Ben McIlwain
parent 7c0b8cab0b
commit e1bcc2e64d

View file

@ -137,7 +137,7 @@ public class GracePeriod extends ImmutableObject {
DateTime expirationTime, DateTime expirationTime,
String clientId, String clientId,
Key<BillingEvent.Recurring> billingEventRecurring) { Key<BillingEvent.Recurring> billingEventRecurring) {
checkArgumentNotNull(billingEventRecurring); checkArgumentNotNull(billingEventRecurring, "billingEventRecurring cannot be null");
return createInternal(type, expirationTime, clientId, null, billingEventRecurring); return createInternal(type, expirationTime, clientId, null, billingEventRecurring);
} }