KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > components > builder > MessageBuilderException


1 /*
2  * $Id: MessageBuilderException.java 3798 2006-11-04 04:07:14Z aperepel $
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 MuleSource MPL
7  * license, a copy of which has been included with this distribution in the
8  * LICENSE.txt file.
9  */

10
11 package org.mule.components.builder;
12
13 import org.mule.config.i18n.Message;
14 import org.mule.config.i18n.Messages;
15 import org.mule.umo.MessagingException;
16 import org.mule.umo.UMOMessage;
17
18 /**
19  * If thrown by a MEssageBuilder implementation if it cannot build the current
20  * message or some other error occurs
21  *
22  * @author <a HREF="mailto:ross.mason@symphonysoft.com">Ross Mason</a>
23  * @version $Revision: 3798 $
24  */

25 public class MessageBuilderException extends MessagingException
26 {
27     /**
28      * Serial version
29      */

30     private static final long serialVersionUID = 1144140732378649625L;
31
32     public MessageBuilderException(Message message, UMOMessage umoMessage)
33     {
34         super(message, umoMessage);
35     }
36
37     public MessageBuilderException(Message message, UMOMessage umoMessage, Throwable JavaDoc cause)
38     {
39         super(message, umoMessage, cause);
40     }
41
42     public MessageBuilderException(UMOMessage umoMessage, Throwable JavaDoc cause)
43     {
44         super(new Message(Messages.FAILED_TO_BUILD_MESSAGE), umoMessage, cause);
45     }
46 }
47
Popular Tags