|
|||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
ConversionException.java | - | 33,3% | 25% | 28,6% |
|
1 | /* | |
2 | * Copyright 2004 Ronald Blaschke. | |
3 | * | |
4 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
5 | * you may not use this file except in compliance with the License. | |
6 | * You may obtain a copy of the License at | |
7 | * | |
8 | * http://www.apache.org/licenses/LICENSE-2.0 | |
9 | * | |
10 | * Unless required by applicable law or agreed to in writing, software | |
11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
13 | * See the License for the specific language governing permissions and | |
14 | * limitations under the License. | |
15 | */ | |
16 | package org.rblasch.convert; | |
17 | ||
18 | /** | |
19 | * @author Ronald Blaschke | |
20 | */ | |
21 | public class ConversionException extends AbstractRuntimeException { | |
22 | /** | |
23 | * Constructs a new throwable with <code>null</code> as its detail message. | |
24 | * The cause is not initialized, and may subsequently be initialized by a | |
25 | * call to {@link #initCause}. | |
26 | */ | |
27 | 0 | public ConversionException() { |
28 | } | |
29 | ||
30 | /** | |
31 | * Construct a new exception with the specified message. | |
32 | * | |
33 | * @param message The message describing this exception | |
34 | */ | |
35 | 120 | public ConversionException(final String message) { |
36 | 120 | super(message); |
37 | } | |
38 | ||
39 | /** | |
40 | * Construct a new exception with the specified root cause. | |
41 | * | |
42 | * @param cause The root cause of this exception | |
43 | */ | |
44 | 0 | public ConversionException(final Throwable cause) { |
45 | 0 | super(cause); |
46 | } | |
47 | ||
48 | /** | |
49 | * Construct a new exception with the specified message and root cause. | |
50 | * | |
51 | * @param message The message describing this exception | |
52 | * @param cause The root cause of this exception | |
53 | */ | |
54 | 0 | public ConversionException(final String message, final Throwable cause) { |
55 | 0 | super(message, cause); |
56 | } | |
57 | } |
|