1 /* 2 * $Id: CreateException.java 19191 2010-08-25 21:05:23Z tcarlson $ 3 * -------------------------------------------------------------------------------------- 4 * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.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.lifecycle; 12 13 import org.mule.config.i18n.Message; 14 15 /** 16 * <code>CreateException</code> is thrown when creating an object inside Mule wasn't possible due 17 * to inconsistent internal state or wrong input. 18 */ 19 public class CreateException extends LifecycleException 20 { 21 /** Serial version */ 22 private static final long serialVersionUID = -8402348927606781921L; 23 24 /** 25 * @param message the exception message 26 * @param component the component that failed during a lifecycle method call 27 */ 28 public CreateException(Message message, Object component) 29 { 30 super(message, component); 31 } 32 33 /** 34 * @param message the exception message 35 * @param cause the exception that cause this exception to be thrown 36 * @param component the component that failed during a lifecycle method call 37 */ 38 public CreateException(Message message, Throwable cause, Object component) 39 { 40 super(message, cause, component); 41 } 42 43 /** 44 * @param cause the exception that cause this exception to be thrown 45 * @param component the component that failed during a lifecycle method call 46 */ 47 public CreateException(Throwable cause, Object component) 48 { 49 super(cause, component); 50 } 51 }