/*
 * Created on 17. sep.. 2006
 *
 * Copyright (c) 2005, Karl Trygve Kalleberg <karltk near strategoxt.org>
 * 
 * Licensed under the GNU Lesser General Public License, v2.1
 */
package org.spoofax.terms.util;

public class NotImplementedException extends RuntimeException {
    
    public NotImplementedException() {
        super("Not Implemented");
    }
    
    public NotImplementedException(String message) {
        super(message);
    }

    private static final long serialVersionUID = -1028814795329444374L;
}

@@ -205,16 +205,119 @@
 .util;%0A%0A
+import javax.annotation.Nullable;%0A%0A/**%0A * Exception indicating that something was not implemented.%0A */%0A
 public c
@@ -357,15 +357,28 @@
 nds 
-Runtime
+UnsupportedOperation
 Exce
@@ -385,31 +385,239 @@
 ption %7B%0A
+%0A
     
-%0A    public
+private static final long serialVersionUID = -1028814795329444374L;%0A    private static final String DEFAULT_MESSAGE = %22This operation has not been implemented.%22;%0A%0A    /**%0A     * Initializes a new instance of the %7B@link
  NotImpl
@@ -636,57 +636,120 @@
 tion
-() %7B
+%7D class.
 %0A     
+*%0A
    
-super(%22Not Implemented%22);%0A    %7D
+  * @param message the message to display; or %7B@code null%7D to use the default message
 %0A    
+ */
 %0A   
@@ -780,16 +780,26 @@
 ception(
+@Nullable 
 String m
@@ -833,88 +833,252 @@
 sage
-);%0A    %7D%0A%0A    private static final long serialVersionUID = -1028814795329444374L;
+ != null ? message : DEFAULT_MESSAGE, null);%0A    %7D%0A%0A    /**%0A     * Initializes a new instance of the %7B@link NotImplementedException%7D class%0A     * with the default message.%0A     */%0A    public NotImplementedException() %7B%0A        this(null);%0A    %7D%0A
 %0A%7D%0A

Extend NotImplementedException from UnsupportedOperationException