snnusdk.exceptions 源代码

__author__ = 'QiZhao'
'''
Created on Nov 29, 2018

@author: QiZhao
'''


[文档]class SnnuException(Exception): """Base class for exceptions in this module.""" def __init__(self, *args, **kwargs): super(SnnuException, self).__init__(*args, **kwargs)
[文档]class AuthenticationError(SnnuException): """An Authentication Exception occurred."""
[文档]class UnauthorizedError(SnnuException): """Not authorized Error"""
[文档]class TemporaryBannedError(SnnuException): """Temporary Banned by Server"""
[文档]class BuildingNotFoundError(SnnuException): """Building Not Found Error"""
[文档]class RoomNotFoundError(SnnuException): """Room Not Found Error"""
[文档]class YearNotExistError(SnnuException): """Year Not Exist Error"""
[文档]class DepartmentNotSupportedError(SnnuException): """Deparment Not Supported Error"""