Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
FatalException |
|
| 1.0;1 |
1 | /* | |
2 | * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com | |
3 | * The software in this package is published under the terms of the CPAL v1.0 | |
4 | * license, a copy of which has been included with this distribution in the | |
5 | * LICENSE.txt file. | |
6 | */ | |
7 | package org.mule.example.errorhandler.exceptions; | |
8 | ||
9 | import org.mule.api.MuleException; | |
10 | import org.mule.config.i18n.MessageFactory; | |
11 | ||
12 | /** | |
13 | * <code>FatalException</code> TODO (document class) | |
14 | */ | |
15 | public class FatalException extends MuleException | |
16 | { | |
17 | ||
18 | /** | |
19 | * Serial version | |
20 | */ | |
21 | private static final long serialVersionUID = -5683879269751770579L; | |
22 | ||
23 | /** | |
24 | * @param message | |
25 | */ | |
26 | public FatalException(String message) | |
27 | { | |
28 | 0 | this("FATAL EXCEPTION: " + message, null); |
29 | 0 | } |
30 | ||
31 | /** | |
32 | * @param message | |
33 | * @param cause | |
34 | */ | |
35 | public FatalException(String message, Throwable cause) | |
36 | { | |
37 | 0 | super(MessageFactory.createStaticMessage(message), cause); |
38 | 0 | } |
39 | ||
40 | } |