<s> class MwClientError ( RuntimeError ) : <EOL> pass <EOL> class MediaWikiVersionError ( MwClientError ) : <EOL> pass <EOL> class APIDisabledError ( MwClientError ) : <EOL> pass <EOL> class MaximumRetriesExceeded ( MwClientError ) : <EOL> pass <EOL> class APIError ( MwClientError ) : <EOL> def __init__ ( self , code , info , kwargs ) : <EOL> self . code = code <EOL> self . info = info <EOL> MwClientError . __init__ ( self , code , info , kwargs ) <EOL> class InsufficientPermission ( MwClientError ) : <EOL> pass <EOL> class UserBlocked ( InsufficientPermission ) : <EOL> pass <EOL> class EditError ( MwClientError ) : <EOL> pass <EOL> class ProtectedPageError ( EditError , InsufficientPermission ) : <EOL> pass <EOL> class FileExists ( EditError ) : <EOL> pass <EOL> class LoginError ( MwClientError ) : <EOL> pass <EOL> class EmailError ( MwClientError ) : <EOL> pass <EOL> class NoSpecifiedEmail ( EmailError ) : <EOL> pass <EOL> class NoWriteApi ( MwClientError ) : <EOL> pass <EOL> class InvalidResponse ( MwClientError ) : <EOL> def __init__ ( self , response_text = None ) : <EOL> self . message = '<STR_LIT>' + '<STR_LIT>' + '<STR_LIT>' <EOL> self . response_text = response_text <EOL> MwClientError . __init__ ( self , self . message , response_text ) <EOL> def __str__ ( self ) : <EOL> return self . message </s>
