mirror of
https://github.com/google/nomulus
synced 2026-01-09 15:43:52 +00:00
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:
@@ -137,7 +137,7 @@ public class GracePeriod extends ImmutableObject {
|
||||
DateTime expirationTime,
|
||||
String clientId,
|
||||
Key<BillingEvent.Recurring> billingEventRecurring) {
|
||||
checkArgumentNotNull(billingEventRecurring);
|
||||
checkArgumentNotNull(billingEventRecurring, "billingEventRecurring cannot be null");
|
||||
return createInternal(type, expirationTime, clientId, null, billingEventRecurring);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user