public class MediaWikiApiErrorException extends Exception
Constructor and Description |
---|
MediaWikiApiErrorException(String errorCode,
String errorMessage)
Creates a new exception for the given error code and message.
|
Modifier and Type | Method and Description |
---|---|
String |
getErrorCode()
Returns the MediaWiki code of the error that has causes this exception.
|
String |
getErrorMessage()
Returns the MediaWiki message string for the error that has causes this
exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public MediaWikiApiErrorException(String errorCode, String errorMessage)
errorCode
- MediaWiki reported error codeerrorMessage
- MediaWiki reported error message, or any other human-readable
message string generated locallypublic String getErrorCode()
public String getErrorMessage()
Throwable.getMessage()
.Copyright © 2014–2024 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage