/* 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 InvalidArgumentException
        extends Exception {

    private static final long serialVersionUID = 2728824423324590713L;

    public InvalidArgumentException(
            String message) {

        super(message);

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

    public InvalidArgumentException(
            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,430 @@
 ption;%0A%0A
+/**%0A * An invalid argument exception is thrown when the user execute the software%0A * providing an unappropriate argument.%0A * %3Cp%3E%0A * In the source code of the software, this exception should be thrown whenever%0A * we execute the program and check for its options/arguments. For example, an%0A * InvalidArgumentException should be thrown when we execute the program%0A * providing a bogus option or invalid argument.%0A */%0A
 public c
@@ -1209,24 +1209,79 @@
 xception %7B%0A%0A
+    /** Serial version identifier for serialization */%0A
     private 
@@ -1348,212 +1348,810 @@
     
-public InvalidArgumentException(%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 exception with the provided error%0A     * 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 InvalidArgumentException(%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 exception with the provided error%0A     * 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.