⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 connectorexception.java

📁 提供ESB 应用mule源代码 提供ESB 应用mule源代码
💻 JAVA
字号:
/* * $Id: ConnectorException.java 10489 2008-01-23 17:53:38Z dfeist $ * -------------------------------------------------------------------------------------- * 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.transport;import org.mule.api.MuleException;import org.mule.config.i18n.CoreMessages;import org.mule.config.i18n.Message;/** * <code>ConnectorException</code> Is thrown in the context of a Connector, * usually some sort of transport level error where the connection has failed. This * exception maintains a reference to the connector. *  * @see Connector */public class ConnectorException extends MuleException{    /**     * Serial version     */    private static final long serialVersionUID = 4729481487016346035L;    /**     * The connector relevant to this exception     */    private transient Connector connector;    /**     * @param message the exception message     * @param connector where the exception occurred or is being thrown     */    public ConnectorException(Message message, Connector connector)    {        super(generateMessage(message, connector));        this.connector = connector;    }    /**     * @param message the exception message     * @param connector where the exception occurred or is being thrown     * @param cause the exception that cause this exception to be thrown     */    public ConnectorException(Message message, Connector connector, Throwable cause)    {        super(generateMessage(message, connector), cause);        this.connector = connector;    }    private static Message generateMessage(Message message, Connector connector)    {        Message m = CoreMessages.connectorCausedError(connector);        if (message != null)        {            message.setNextMessage(m);        }        return message;    }    public Connector getConnector()    {        return connector;    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -