@@ -0,0 +1,1537 @@
+/*%0A * Copyright 2005 Joe Walker%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage org.directwebremoting.io;%0A%0Aimport java.util.Map;%0A%0A/**%0A * DwrConvertedException are automatically exported by DWR along with the%0A * message and (optionally) a map of data. It is the developers job to ensure%0A * that all the objects in the data map are marked for conversion.%0A * @author Joe Walker %5Bjoe at getahead dot ltd dot uk%5D%0A */%0Apublic class DwrConvertedException extends RuntimeException%0A%7B%0A    /**%0A     * @param message The message to pass to the exceptionHandler in JavaScript%0A     */%0A    public DwrConvertedException(String message)%0A    %7B%0A        super(message);%0A    %7D%0A%0A    /**%0A     * @param message The message to pass to the exceptionHandler in JavaScript%0A     */%0A    public DwrConvertedException(String message, Map%3C?, ?%3E data)%0A    %7B%0A        super(message);%0A        this.data = data;%0A    %7D%0A%0A    /**%0A     * @return the data%0A     */%0A    public Map%3C?, ?%3E getData()%0A    %7B%0A        return data;%0A    %7D%0A%0A    private Map%3C?, ?%3E data;%0A%7D%0A

Create a new exception that people can throw if they know they want it to go to the outside world without any further need for DWR configuration