package com.rollbar.payload.utilities;

public class ArgumentNullException extends Exception {
    public ArgumentNullException(String parameter) {
        super(String.format("'%s' cannot be null", parameter));
    }
}

package com.rollbar.payload.utilities;

/**
 * Indicates a null argument was passed when it shouldn't have been.
 */
public class ArgumentNullException extends IllegalArgumentException {
    /**
     * Constructor
     * @param parameter the null parameter
     */
    public ArgumentNullException(String parameter) {
        super(String.format("'%s' cannot be null", parameter));
    }
}

Make ArgumentNullException Runtime, and document it