Class TokenErrorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.wikidata.wdtk.wikibaseapi.apierrors.MediaWikiApiErrorException
org.wikidata.wdtk.wikibaseapi.apierrors.TokenErrorException
- All Implemented Interfaces:
Serializable
Exception to indicate a MediaWiki API error caused by missing or invalid
token.
- Author:
- Markus Kroetzsch
- See Also:
-
Constructor Summary
ConstructorDescriptionTokenErrorException
(String errorCode, String errorMessage) Creates a new exception. -
Method Summary
Methods inherited from class org.wikidata.wdtk.wikibaseapi.apierrors.MediaWikiApiErrorException
getErrorCode, getErrorMessage
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TokenErrorException
Creates a new exception.- Parameters:
errorCode
- the error code reported by MediaWikierrorMessage
- the error message reported by MediaWiki, or any other meaningful message for the user
-