/*
 * Copyright 2017 Volker Berlin (i-net software)
 *
 * 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 de.inetsoftware.jwebassembly;

/**
 * If there any error occur on converting a class file to a WebAssembly module.
 * 
 * @author Volker Berlin
 *
 */
public class CompileException extends Exception {

}

@@ -843,11 +843,593 @@
 on %7B%0D%0A%0D%0A
+    /**%0D%0A     * Create a new instance with a cause.%0D%0A     * %0D%0A     * @param cause%0D%0A     *            the cause%0D%0A     */%0D%0A    CompileException( Throwable cause ) %7B%0D%0A        super( cause );%0D%0A    %7D%0D%0A%0D%0A    /**%0D%0A     * Create a wrapped exception needed.%0D%0A     * %0D%0A     * @param cause%0D%0A     *            the wrapped cause%0D%0A     * @return a new instance%0D%0A     */%0D%0A    public static CompileException create( Throwable cause ) %7B%0D%0A        if( cause instanceof CompileException ) %7B%0D%0A            return (CompileException)cause;%0D%0A        %7D%0D%0A        return new CompileException( cause );%0D%0A    %7D%0D%0A
 %7D%0D%0A

add factory method