%line | %branch | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
org.apache.commons.i18n.MessageNotFoundException |
|
|
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: 155449 $ |
|
4 | * $Date: 2005-02-26 14:22:13 +0100 (Sa, 26 Feb 2005) $ |
|
5 | * |
|
6 | * ==================================================================== |
|
7 | * |
|
8 | * Copyright 2004 The Apache Software Foundation |
|
9 | * |
|
10 | * Licensed under the Apache License, Version 2.0 (the "License"); |
|
11 | * you may not use this file except in compliance with the License. |
|
12 | * You may obtain a copy of the License at |
|
13 | * |
|
14 | * http://www.apache.org/licenses/LICENSE-2.0 |
|
15 | * |
|
16 | * Unless required by applicable law or agreed to in writing, software |
|
17 | * distributed under the License is distributed on an "AS IS" BASIS, |
|
18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
19 | * See the License for the specific language governing permissions and |
|
20 | * limitations under the License. |
|
21 | * |
|
22 | */ |
|
23 | package org.apache.commons.i18n; |
|
24 | ||
25 | import java.lang.RuntimeException; |
|
26 | ||
27 | /** |
|
28 | * The <code>MessageNotFoundException</code> indicates that a particular message |
|
29 | * could not be found by using the given message id. |
|
30 | * |
|
31 | */ |
|
32 | public class MessageNotFoundException extends RuntimeException { |
|
33 | /** |
|
34 | * Constructs a new runtime exception with the specified detail message indicating that a particular message |
|
35 | * could not be found. |
|
36 | * The cause is not initialized, and may subsequently be initialized by a |
|
37 | * call to {@link #initCause}. |
|
38 | * |
|
39 | * @param message the detail message. The detail message is saved for |
|
40 | * later retrieval by the {@link #getMessage()} method. |
|
41 | */ |
|
42 | public MessageNotFoundException(String message) { |
|
43 | 581 | super(message); |
44 | 581 | } |
45 | ||
46 | /** |
|
47 | * Constructs a new runtime exception with the specified detail message indicating that a particular message and cause |
|
48 | * indicating that a particular message could not be found. |
|
49 | * <p>Note that the detail message associated with |
|
50 | * <code>cause</code> is <i>not</i> automatically incorporated in |
|
51 | * this runtime exception's detail message. |
|
52 | * |
|
53 | * @param message the detail message (which is saved for later retrieval |
|
54 | * by the {@link #getMessage()} method). |
|
55 | * @param cause the cause (which is saved for later retrieval by the |
|
56 | * {@link #getCause()} method). (A <tt>null</tt> value is |
|
57 | * permitted, and indicates that the cause is nonexistent or |
|
58 | * unknown.) |
|
59 | */ |
|
60 | public MessageNotFoundException(String message, Throwable cause) { |
|
61 | 13 | super(message, cause); |
62 | 13 | } |
63 | } |
This report is generated by jcoverage, Maven and Maven JCoverage Plugin. |