001package org.apache.commons.digester3.binder;
002
003/*
004 * Licensed to the Apache Software Foundation (ASF) under one
005 * or more contributor license agreements.  See the NOTICE file
006 * distributed with this work for additional information
007 * regarding copyright ownership.  The ASF licenses this file
008 * to you under the Apache License, Version 2.0 (the
009 * "License"); you may not use this file except in compliance
010 * with the License.  You may obtain a copy of the License at
011 *
012 *   http://www.apache.org/licenses/LICENSE-2.0
013 *
014 * Unless required by applicable law or agreed to in writing,
015 * software distributed under the License is distributed on an
016 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
017 * KIND, either express or implied.  See the License for the
018 * specific language governing permissions and limitations
019 * under the License.
020 */
021
022/**
023 * Thrown when errors occur while creating a {@link org.apache.commons.digester3.Digester}.
024 *
025 * Includes a list of encountered errors. Clients should catch this exception, log it, and stop execution.
026 */
027public final class DigesterLoadingException
028    extends RuntimeException
029{
030
031    /**
032     * The typical serial version UID.
033     */
034    private static final long serialVersionUID = 1L;
035
036    /**
037     * Constructs a new exception with the specified detail message and cause.
038     *
039     * @param message the detail message.
040     * @param cause the cause.
041     */
042    public DigesterLoadingException( String message, Throwable cause )
043    {
044        super( message, cause );
045    }
046
047    /**
048     * Constructs a new Digester exception with the specified detail message.
049     *
050     * @param message the detail message.
051     */
052    public DigesterLoadingException( String message )
053    {
054        super( message );
055    }
056
057    /**
058     * Constructs a new exception with the specified cause.
059     *
060     * @param cause the cause.
061     */
062    public DigesterLoadingException( Throwable cause )
063    {
064        super( cause );
065    }
066
067}