/*
 * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
 *
 * WSO2 Inc. licenses this file to you under the Apache License,
 * Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
package org.wso2.carbon.messaging;

/**
 * {@code ServerConnectorErrorHandler} is the interface for protocol specific error handlers in ballerina.
 *
 * @since 0.8.0
 *
 */
public interface ServerConnectorErrorHandler {

    void handleError(Exception ex, CarbonMessage bContext, CarbonCallback callback);

    String getProtocol();

}

@@ -820,79 +820,692 @@
 .%0A *
-%0A * @since 0.8.0%0A *%0A */%0Apublic interface ServerConnectorErrorHandler %7B%0A
+ This error handler interface should be implemented for handling transport listener related errors.%0A * This will be used by the application for a given transport protocol associated with a %7B@code TransportListener%7D%0A * implementation.%0A *%0A */%0Apublic interface ServerConnectorErrorHandler %7B%0A    /**%0A     * The error handling method which will be invoked by the application using the %7B@code TransportListener%7D%0A     * associated with this error handler.%0A     * @param exception error caught from the application to be handled.%0A     * @param carbonMessage the carbonMessage associated with the currently request/response flow%0A     * @param callback the callback used with responding%0A     */
 %0A   
@@ -1534,16 +1534,23 @@
 ption ex
+ception
 , Carbon
@@ -1561,16 +1561,21 @@
 age 
-bContext
+carbonMessage
 , Ca
@@ -1599,16 +1599,178 @@
 back);%0A%0A
+    /**%0A     * Returns the string value of the transport protocol (eg: %22http%22, %22jms%22, etc. ) this listener is bound to.%0A     * @return transport protocol%0A     */%0A
     Stri
@@ -1787,11 +1787,10 @@
 ocol();%0A
-%0A
 %7D%0A

add java docs for ServerConnectorErrorHandler