MarkLogic XCC/.Net Library |

# ConnectionProvider.returnErrorConnection Method

Return a connection that experienced an error. The provider will indicate the action the client should take.

[Visual Basic]
Function returnErrorConnection( _
ByVal connection As ServerConnection, _
ByVal exception As Exception _
) As Action
[C#]
Action returnErrorConnection(
ServerConnection connection,
Exception exception
);

#### Parameters

connection
  A previously obtained ServerConnection instance.
exception
  The possibly null exception that occurred. The provider may wish to decide which action to recommend depending on the type of exception.

#### Return Value

An instance of ConnectionErrorAction instance that advises the client which action to take.

#### See Also

ConnectionProvider Interface | Marklogic.Xcc.Spi Namespace