//  Copyright 2008 The Apache Software Foundation
//
// 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.apache.tapestry5.ioc.internal;

/**
 * An exception caught and reported by an {@link org.apache.tapestry5.ioc.OperationTracker}; the trace property
 * identifies what operations were active at the time of the exception.
 */
public class OperationException extends RuntimeException
{
    private final String[] trace;

    public OperationException(Throwable cause, String[] trace)
    {
        super(cause.getMessage(), cause);

        this.trace = trace;
    }

    public String[] getTrace()
    {
        return trace;
    }
}

@@ -1,11 +1,10 @@
 //
- 
  Copyrig
@@ -10,16 +10,22 @@
 ght 2008
+, 2010
  The Apa
@@ -234,20 +234,16 @@
 at%0A//%0A//
-    
  http://
@@ -647,16 +647,82 @@
 ernal;%0A%0A
+import org.apache.tapestry5.ioc.internal.util.TapestryException;%0A%0A
 /**%0A * A
@@ -949,15 +949,16 @@
 nds 
-Runtime
+Tapestry
 Exce
@@ -965,16 +965,89 @@
 ption%0A%7B%0A
+    private static final long serialVersionUID = -7555673473832355909L;%0A%0A
     priv

Change OperationException to extend from TapestryException, rather than directly from RuntimeException