C# (CSharp) WikiFunctions.API Namespace

Classes

Name Description
AbortedException Thrown when Abort() function is called, or request is otherwise abruptly terminated
ApiBlankException Thrown when an API call returns a zero-size reply. Most likely, this indicates a server internal error.
ApiEdit This class edits MediaWiki sites using api.php
ApiErrorException Thrown when an API call returned an <error> tag. See https://www.mediawiki.org/wiki/API:Errors for details
ApiException Base class for all API-related exceptions
ApiXmlException Used by ApiEdit.CheckErrors() when we have XML related errors (Wrapper for XmlException)
AssertionFailedException Thrown when assertion in API call fails
AsyncApiEdit Multithreaded API editor class
AsyncApiEdit.InvokeArgs
BrokenXmlException Thrown when an invalid XML output is encountered, or if XML parsing results in error
CaptchaException Thrown when server requests to solve a captcha. Note: we currently don't support captchas in any way other than stopping and reporting.
FeatureDisabledException Thrown when a feature in the Api is disabled
InterwikiException Thrown when page name provided for an API operation contains interwiki prefix
InvalidTitleException Thrown when the API returns a title is invalid
InvocationException
LoggedOffException Thrown when attempted operation requires login
LoginException Thrown when logging in failed
MaxlagException Thrown when servers refuse to perform operation due to overloading
MediaWikiReadOnlyException
MediaWikiSaysNoException Perfect from when MediaWiki just says no Such as hook aborted "The modification you tried to make was aborted by an extension hook"; Thanks AbuseFilter
NewMessagesException Thrown when current user has unread talk page messages
OperationFailedException Thrown when an operation is ended with result other than "Success"
RedirectToSpecialPageException
SaveInfo Provides information about a successfully completed page editing operation
SharedRepoException Thrown when you try to move a file onto a target that exists in a shared repo (e.g. Commons)
SpamlistException Thrown when edit is blocked by SpamBlacklist extension
TranslationPageEditException Thrown when we attempt to edit a subpage managed by the Translate extension. Usually a Namespace:Foo/de type subpage API has given an error of "Unknown error: \"tpt-target-page\""
UserInfo Information about a user