public interface ServerConnectorErrorHandler
ServerConnectorErrorHandler is the interface for protocol specific error handlers in ballerina.
This error handler interface should be implemented for handling transport listener related errors.
This will be used by the application for a given transport protocol associated with a ServerConnector
implementation.| Modifier and Type | Method and Description |
|---|---|
String |
getProtocol()
Returns the string value of the transport protocol (eg: "http", "jms", etc.
|
void |
handleError(Exception exception,
CarbonMessage carbonMessage,
CarbonCallback callback)
The error handling method which will be invoked by the application using the
ServerConnector
associated with this error handler. |
void handleError(Exception exception, CarbonMessage carbonMessage, CarbonCallback callback) throws Exception
ServerConnector
associated with this error handler.exception - error thrown from the application level to be handled.carbonMessage - the carbonMessage associated with the currently request/response flowcallback - the callback used with respondingException - thrown, if the error could not be handled.String getProtocol()
Copyright © 2017 WSO2. All rights reserved.