lifecycleexception.java
来自「提供ESB 应用mule源代码 提供ESB 应用mule源代码」· Java 代码 · 共 65 行
JAVA
65 行
/* * $Id: LifecycleException.java 10885 2008-02-19 16:19:59Z tcarlson $ * -------------------------------------------------------------------------------------- * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com * * The software in this package is published under the terms of the CPAL v1.0 * license, a copy of which has been included with this distribution in the * LICENSE.txt file. */package org.mule.api.lifecycle;import org.mule.api.MuleException;import org.mule.config.i18n.CoreMessages;import org.mule.config.i18n.Message;import org.mule.util.ObjectUtils;/** <code>LifecycleException</code> TODO */public class LifecycleException extends MuleException{ /** Serial version */ private static final long serialVersionUID = 2909614055858287394L; private transient Object component; /** * @param message the exception message * @param service the object that failed during a lifecycle method call */ public LifecycleException(Message message, Object component) { super(message); this.component = component; } /** * @param message the exception message * @param cause the exception that cause this exception to be thrown * @param service the object that failed during a lifecycle method call */ public LifecycleException(Message message, Throwable cause, Object component) { super(message, cause); this.component = component; } /** * @param cause the exception that cause this exception to be thrown * @param service the object that failed during a lifecycle method call */ public LifecycleException(Throwable cause, Object component) { super(CoreMessages.initialisationFailure(cause.getMessage()), cause); this.component = component; addInfo("Object", ObjectUtils.toString(component, "null")); } public Object getComponent() { return component; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?