blob: 868df897ea12b67e6b5b2d0f33b738b9a67ca97f [file] [log] [blame]
// Copyright 2006 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.internal.services;
/**
* Exception thrown when a method body fails to compile; this will allow the method body to be displayed to the user on
* the request failure page.
*/
public class MethodCompileException extends RuntimeException
{
private static final long serialVersionUID = -2803586049370974986L;
private final String methodBody;
public MethodCompileException(String message, String methodBody, Throwable cause)
{
super(message, cause);
this.methodBody = methodBody;
}
public String getMethodBody()
{
return methodBody;
}
}