Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
DefaultMuleException |
|
| 1.0;1 |
1 | /* | |
2 | * $Id: DefaultMuleException.java 10489 2008-01-23 17:53:38Z dfeist $ | |
3 | * -------------------------------------------------------------------------------------- | |
4 | * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com | |
5 | * | |
6 | * The software in this package is published under the terms of the CPAL v1.0 | |
7 | * license, a copy of which has been included with this distribution in the | |
8 | * LICENSE.txt file. | |
9 | */ | |
10 | ||
11 | package org.mule.api; | |
12 | ||
13 | import org.mule.config.i18n.Message; | |
14 | import org.mule.config.i18n.MessageFactory; | |
15 | ||
16 | /** | |
17 | * <code>MuleException</code> Is the base exception type for the Mule application | |
18 | * any other exceptions thrown by Mule code will be based on this exception. | |
19 | */ | |
20 | public class DefaultMuleException extends MuleException | |
21 | { | |
22 | /** | |
23 | * Serial version | |
24 | */ | |
25 | private static final long serialVersionUID = 2554735072826262515L; | |
26 | ||
27 | public DefaultMuleException(String message) | |
28 | { | |
29 | 2 | this(MessageFactory.createStaticMessage(message)); |
30 | 2 | } |
31 | ||
32 | /** | |
33 | * @param message the exception message | |
34 | */ | |
35 | public DefaultMuleException(Message message) | |
36 | { | |
37 | 8 | super(message); |
38 | 8 | } |
39 | ||
40 | public DefaultMuleException(String message, Throwable cause) | |
41 | { | |
42 | 0 | this(MessageFactory.createStaticMessage(message), cause); |
43 | 0 | } |
44 | ||
45 | /** | |
46 | * @param message the exception message | |
47 | * @param cause the exception that cause this exception to be thrown | |
48 | */ | |
49 | public DefaultMuleException(Message message, Throwable cause) | |
50 | { | |
51 | 0 | super(message, cause); |
52 | 0 | } |
53 | ||
54 | public DefaultMuleException(Throwable cause) | |
55 | { | |
56 | 4 | super(cause); |
57 | 4 | } |
58 | } |