org.apache.synapse.transport.passthru

## Class TargetErrorHandler

- java.lang.Object
- - org.apache.synapse.transport.passthru.TargetErrorHandler

-     public class TargetErrorHandler
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TargetErrorHandler(TargetConfiguration targetConfiguration)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | `handleError(org.apache.axis2.context.MessageContext mc, int errorCode, String errorMessage, Exception exceptionToRaise, ProtocolState state)` Mark request to send failed with error

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### TargetErrorHandler

          public TargetErrorHandler(TargetConfiguration targetConfiguration)

  - ### Method Detail

    - #### handleError

          protected void handleError(org.apache.axis2.context.MessageContext mc,
                                     int errorCode,
                                     String errorMessage,
                                     Exception exceptionToRaise,
                                     ProtocolState state)

      Mark request to send failed with error
      Parameters:
        `mc` - the failed message context
        `errorCode` - the error code to raise
        `errorMessage` - the text for an error message to be returned to the MR on failure
        `exceptionToRaise` - an Exception to be returned to the MR on failure
        `state` - state of the connection

Copyright © 2005–2018 Apache Software Foundation. All rights reserved.