Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
MuleException |
|
| 1.0;1 |
1 | /* | |
2 | * $Id: MuleException.java 7976 2007-08-21 14:26:13Z dirk.olmes $ | |
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; | |
12 | ||
13 | import org.mule.config.i18n.Message; | |
14 | import org.mule.config.i18n.MessageFactory; | |
15 | import org.mule.umo.UMOException; | |
16 | ||
17 | /** | |
18 | * <code>MuleException</code> Is the base exception type for the Mule application | |
19 | * any other exceptions thrown by Mule code will be based on this exception. | |
20 | */ | |
21 | public class MuleException extends UMOException | |
22 | { | |
23 | /** | |
24 | * Serial version | |
25 | */ | |
26 | private static final long serialVersionUID = 2554735072826262515L; | |
27 | ||
28 | public MuleException(String message) | |
29 | { | |
30 | 0 | this(MessageFactory.createStaticMessage(message)); |
31 | 0 | } |
32 | ||
33 | /** | |
34 | * @param message the exception message | |
35 | */ | |
36 | public MuleException(Message message) | |
37 | { | |
38 | 0 | super(message); |
39 | 0 | } |
40 | ||
41 | public MuleException(String message, Throwable cause) | |
42 | { | |
43 | 0 | this(MessageFactory.createStaticMessage(message), cause); |
44 | 0 | } |
45 | ||
46 | /** | |
47 | * @param message the exception message | |
48 | * @param cause the exception that cause this exception to be thrown | |
49 | */ | |
50 | public MuleException(Message message, Throwable cause) | |
51 | { | |
52 | 0 | super(message, cause); |
53 | 0 | } |
54 | ||
55 | public MuleException(Throwable cause) | |
56 | { | |
57 | 0 | super(cause); |
58 | 0 | } |
59 | } |