You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
713 B
Python

'''
Exceptions
'''
class ZFSException(Exception):
'''
Base for the exception tree used by this library.
:note: Some functions throw ordinary python base exceptions as well.
'''
pass
class DatasetNotFound(ZFSException):
'''
A dataset was not found.
'''
pass
class PermissionError(ZFSException):
'''
Permissions are not sufficient to carry out the task.
'''
pass
class PoolNotFound(ZFSException):
'''
A pool was not found.
'''
pass
class PropertyNotFound(ZFSException):
'''
A property was not found.
'''
pass
class ValidationError(ZFSException):
'''
Indicates that a value failed validation.
'''
pass