/* This file is part of SableCC ( http://sablecc.org ).
 *
 * See the NOTICE file distributed with this work for copyright information.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.sablecc.sablecc.exception;

public class InvalidArgumentRuntimeException
        extends RuntimeException {

    private static final long serialVersionUID = -1526259558916228310L;

    public InvalidArgumentRuntimeException(
            String message) {

        super(message);

        if (message == null) {
            throw new InternalException("message may not be null");
        }
    }

    public InvalidArgumentRuntimeException(
            String message,
            Throwable cause) {

        super(message, cause);

        if (message == null) {
            throw new InternalException("message may not be null");
        }

        if (cause == null) {
            throw new InternalException("cause may not be null");
        }
    }

}

@@ -732,16 +732,196 @@
 ption;%0A%0A
+/**%0A * An invalid argument runtime exception is thrown during the execution of the%0A * software when the user provided a bogus option or argument when starting the%0A * program.%0A */%0A%0A
 public c
@@ -989,24 +989,79 @@
 xception %7B%0A%0A
+    /** Serial version identifier for serialization */%0A
     private 
@@ -1129,219 +1129,833 @@
     
-public InvalidArgumentRuntimeException(%0A            String message) %7B%0A%0A        super(message);%0A%0A        if (message == null) %7B%0A            throw new InternalException(%22message may not be null%22);%0A        %7D%0A    %7D%0A
+/**%0A     * Constructs a new invalid argument runtime exception with the provided%0A     * error message.%0A     * %0A     * @param message%0A     *            the error message.%0A     * @throws InternalException%0A     *             if the message is %3Ccode%3Enull%3C/code%3E.%0A     */%0A    public InvalidArgumentRuntimeException(%0A            String message) %7B%0A%0A        super(message);%0A%0A        if (message == null) %7B%0A            throw new InternalException(%22message may not be null%22);%0A        %7D%0A    %7D%0A%0A    /**%0A     * Constructs a new invalid argument runtime exception with the provided%0A     * error message and cause.%0A     * %0A     * @param message%0A     *            the error message.%0A     * @param cause%0A     *            the cause.%0A     * @throws InternalException%0A     *             if the message or the cause is %3Ccode%3Enull%3C/code%3E.%0A     */
 %0A   

Add javadoc comments.