    001// Copyright 2006, 2008, 2010, 2011 The Apache Software Foundation
    002//
    003// Licensed under the Apache License, Version 2.0 (the "License");
    004// you may not use this file except in compliance with the License.
    005// You may obtain a copy of the License at
    006//
    007// http://www.apache.org/licenses/LICENSE-2.0
    008//
    009// Unless required by applicable law or agreed to in writing, software
    010// distributed under the License is distributed on an "AS IS" BASIS,
    011// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    012// See the License for the specific language governing permissions and
    013// limitations under the License.
    014
    015package org.apache.tapestry5.ioc.services;
    016
    017import java.util.List;
    018
    019/**
    020 * Contains information about an analyzed exception.
    021 *
    022 * @see ExceptionAnalysis
    023 */
    024public interface ExceptionInfo
    025{
    026    /**
    027     * The exception class name.
    028     */
    029    String getClassName();
    030
    031    /**
    032     * The message associated with the exception, possibly null.
    033     */
    034    String getMessage();
    035
    036    /**
    037     * Returns the names of the properties of the exception, sorted alphabetically.
    038     */
    039    List<String> getPropertyNames();
    040
    041    /**
    042     * Returns a specific property of the exception by name.
    043     */
    044    Object getProperty(String name);
    045
    046    /**
    047     * Returns the stack trace elements. Generally this is an empty list except for the deepest exception.
    048     */
    049    List<StackTraceElement> getStackTrace();
    050}