| MediaWikiJsonResponseParserOnApiError Method |
This is preliminary documentation and is subject to change.
Called when error node presents in the API response.
Namespace: WikiClientLibrary.ClientAssembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax protected virtual void OnApiError(
string errorCode,
string errorMessage,
JsonNode errorNode,
JsonNode responseNode,
WikiResponseParsingContext context
)
Protected Overridable Sub OnApiError (
errorCode As String,
errorMessage As String,
errorNode As JsonNode,
responseNode As JsonNode,
context As WikiResponseParsingContext
)
Dim errorCode As String
Dim errorMessage As String
Dim errorNode As JsonNode
Dim responseNode As JsonNode
Dim context As WikiResponseParsingContext
Me.OnApiError(errorCode, errorMessage,
errorNode, responseNode, context)
protected:
virtual void OnApiError(
String^ errorCode,
String^ errorMessage,
JsonNode^ errorNode,
JsonNode^ responseNode,
WikiResponseParsingContext^ context
)
abstract OnApiError :
errorCode : string *
errorMessage : string *
errorNode : JsonNode *
responseNode : JsonNode *
context : WikiResponseParsingContext -> unit
override OnApiError :
errorCode : string *
errorMessage : string *
errorNode : JsonNode *
responseNode : JsonNode *
context : WikiResponseParsingContext -> unit
Parameters
- errorCode String
- Error code. (error.code)
- errorMessage String
- Error message. (error.info)
- errorNode JsonNode
- The error JSON node.
- responseNode JsonNode
- The JSON root of the API response.
- context WikiResponseParsingContext
- The response parsing context, used for initiating a retry.
Remarks The default implementation for this method throws a OperationFailedException
or one of its derived exceptions. The default exception mapping is as follows
See Also