seafile_ynh/sources/seafile-server-3.1.1/seahub/thirdpart/seafobj/exceptions.py
Elie 0f063400be Add sources
Former-commit-id: 2e47976ec5
2014-08-06 22:42:37 -04:00

23 lines
No EOL
474 B
Python

#coding: UTF-8
class SeafObjException(Exception):
def __init__(self, msg):
Exception.__init__(self)
self.msg = msg
def __str__(self):
return self.msg
class InvalidConfigError(SeafObjException):
'''This Exception is rasied when error happens during parsing
seafile.conf
'''
pass
class ObjectFormatError(SeafObjException):
'''This Exception is rasied when error happened during parse object
format
'''
pass