public class MaxlagErrorException extends MediaWikiApiErrorException
Modifier and Type | Field and Description |
---|---|
protected double |
lag |
Constructor and Description |
---|
MaxlagErrorException(String errorMessage)
Creates a new exception.
|
MaxlagErrorException(String errorMessage,
double lag)
Creates an exception which also stores the lag announced by the server.
|
Modifier and Type | Method and Description |
---|---|
double |
getLag()
Retrieves the amount of lag announced by the server when this
error was emitted.
|
getErrorCode, getErrorMessage
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public MaxlagErrorException(String errorMessage)
errorMessage
- the error message reported by MediaWiki, or any other
meaningful message for the userpublic MaxlagErrorException(String errorMessage, double lag)
errorMessage
- the error message reported by MediaWiki, or any other
meaningful message for the userlag
- the value of the reported lag, in secondsCopyright © 2014–2024 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage