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.manager; 020 021/** 022 * Encapsulate a Doxia exception that indicates that a parser 023 * does not exist or could not be found. 024 * 025 * @author <a href="mailto:jason@maven.org">Jason van Zyl</a> 026 * @since 1.0 027 */ 028public class ParserNotFoundException extends Exception { 029 /** serialVersionUID */ 030 static final long serialVersionUID = 295967936746221567L; 031 032 /** 033 * Construct a new ParserNotFoundException with the specified detail message. 034 * 035 * @param message The detailed message. 036 * This can later be retrieved by the Throwable.getMessage() method. 037 */ 038 public ParserNotFoundException(String message) { 039 super(message); 040 } 041 042 /** 043 * Constructs a new exception with the specified cause. The error 044 * message is (cause == null ? null : cause.toString()). 045 * 046 * @param cause the cause. This can be retrieved later by the 047 * Throwable.getCause() method. (A null value is permitted, and indicates 048 * that the cause is nonexistent or unknown.) 049 */ 050 public ParserNotFoundException(Throwable cause) { 051 super(cause); 052 } 053 054 /** 055 * Construct a new ParserNotFoundException with the specified 056 * detail message and cause. 057 * 058 * @param message The detailed message. 059 * This can later be retrieved by the Throwable.getMessage() method. 060 * @param cause the cause. This can be retrieved later by the 061 * Throwable.getCause() method. (A null value is permitted, and indicates 062 * that the cause is nonexistent or unknown.) 063 */ 064 public ParserNotFoundException(String message, Throwable cause) { 065 super(message, cause); 066 } 067}