| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| MessageNotFoundException |
|
| 1.0;1 |
| 1 | /* | |
| 2 | * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons-sandbox//i18n/src/java/org/apache/commons/i18n/MessageNotFoundException.java,v 1.1 2004/10/04 13:41:09 dflorey Exp $ | |
| 3 | * $Revision: 480489 $ | |
| 4 | * $Date: 2006-11-29 09:00:46 +0000 (Wed, 29 Nov 2006) $ | |
| 5 | * | |
| 6 | * ==================================================================== | |
| 7 | * | |
| 8 | * Licensed to the Apache Software Foundation (ASF) under one or more | |
| 9 | * contributor license agreements. See the NOTICE file distributed with | |
| 10 | * this work for additional information regarding copyright ownership. | |
| 11 | * The ASF licenses this file to You under the Apache License, Version 2.0 | |
| 12 | * (the "License"); you may not use this file except in compliance with | |
| 13 | * the License. You may obtain a copy of the License at | |
| 14 | * | |
| 15 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 16 | * | |
| 17 | * Unless required by applicable law or agreed to in writing, software | |
| 18 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 19 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 20 | * See the License for the specific language governing permissions and | |
| 21 | * limitations under the License. | |
| 22 | * | |
| 23 | */ | |
| 24 | package org.apache.commons.i18n; | |
| 25 | ||
| 26 | import java.lang.RuntimeException; | |
| 27 | ||
| 28 | /** | |
| 29 | * The <code>MessageNotFoundException</code> indicates that a particular message | |
| 30 | * could not be found by using the given message id. | |
| 31 | * | |
| 32 | */ | |
| 33 | public class MessageNotFoundException extends RuntimeException { | |
| 34 | /** | |
| 35 | * Constructs a new runtime exception with the specified detail message indicating that a particular message | |
| 36 | * could not be found. | |
| 37 | * The cause is not initialized, and may subsequently be initialized by a | |
| 38 | * call to {@link #initCause}. | |
| 39 | * | |
| 40 | * @param message the detail message. The detail message is saved for | |
| 41 | * later retrieval by the {@link #getMessage()} method. | |
| 42 | */ | |
| 43 | public MessageNotFoundException(String message) { | |
| 44 | 59 | super(message); |
| 45 | 59 | } |
| 46 | ||
| 47 | /** | |
| 48 | * Constructs a new runtime exception with the specified detail message indicating that a particular message and cause | |
| 49 | * indicating that a particular message could not be found. | |
| 50 | * <p>Note that the detail message associated with | |
| 51 | * <code>cause</code> is <i>not</i> automatically incorporated in | |
| 52 | * this runtime exception's detail message. | |
| 53 | * | |
| 54 | * @param message the detail message (which is saved for later retrieval | |
| 55 | * by the {@link #getMessage()} method). | |
| 56 | * @param cause the cause (which is saved for later retrieval by the | |
| 57 | * {@link #getCause()} method). (A <tt>null</tt> value is | |
| 58 | * permitted, and indicates that the cause is nonexistent or | |
| 59 | * unknown.) | |
| 60 | */ | |
| 61 | public MessageNotFoundException(String message, Throwable cause) { | |
| 62 | 1 | super(message, cause); |
| 63 | 1 | } |
| 64 | } |