001/*
002 * Licensed to the Apache Software Foundation (ASF) under one
003 * or more contributor license agreements.  See the NOTICE file
004 * distributed with this work for additional information
005 * regarding copyright ownership.  The ASF licenses this file
006 * to you under the Apache License, Version 2.0 (the
007 * "License"); you may not use this file except in compliance
008 * with the License.  You may obtain a copy of the License at
009 *
010 *   http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing,
013 * software distributed under the License is distributed on an
014 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015 * KIND, either express or implied.  See the License for the
016 * specific language governing permissions and limitations
017 * under the License.
018 */
019package org.apache.maven.doxia.parser.module;
020
021/**
022 * Encapsulate a Doxia exception that indicates that a ParserModule
023 * does not exist or could not be found.
024 *
025 * @since 1.6
026 */
027public class ParserModuleNotFoundException extends Exception {
028    private static final long serialVersionUID = 8717077929507984309L;
029
030    /**
031     * Construct a new ParserModuleNotFoundException with the
032     * specified detail message.
033     *
034     * @param message The detailed message.
035     * This can later be retrieved by the Throwable.getMessage() method.
036     */
037    public ParserModuleNotFoundException(String message) {
038        super(message);
039    }
040
041    /**
042     * Constructs a new ParserModuleNotFoundException with the specified cause.
043     * The error message is (cause == null ? null : cause.toString()).
044     *
045     * @param cause the cause. This can be retrieved later by the
046     * Throwable.getCause() method. (A null value is permitted, and indicates
047     * that the cause is nonexistent or unknown.)
048     */
049    public ParserModuleNotFoundException(Throwable cause) {
050        super(cause);
051    }
052
053    /**
054     * Construct a new ParserModuleNotFoundException with the specified
055     * detail message and cause.
056     *
057     * @param message The detailed message.
058     * This can later be retrieved by the Throwable.getMessage() method.
059     * @param cause The cause. This can be retrieved later by the
060     * Throwable.getCause() method. (A null value is permitted, and indicates
061     * that the cause is nonexistent or unknown.)
062     */
063    public ParserModuleNotFoundException(String message, Throwable cause) {
064        super(message, cause);
065    }
066}