Add a parent SpinalException class.
This commit is contained in:
parent
ef89ba67c2
commit
7c0f3979a4
1 changed files with 10 additions and 7 deletions
|
@ -17,25 +17,28 @@ CHUNK_SIZE = 2 * bytestring.MIBIBYTE
|
||||||
|
|
||||||
HASH_CLASS = hashlib.md5
|
HASH_CLASS = hashlib.md5
|
||||||
|
|
||||||
class DestinationIsDirectory(Exception):
|
class SpinalException(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class DestinationIsFile(Exception):
|
class DestinationIsDirectory(SpinalException):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class RecursiveDirectory(Exception):
|
class DestinationIsFile(SpinalException):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class SourceNotDirectory(Exception):
|
class RecursiveDirectory(SpinalException):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class SourceNotFile(Exception):
|
class SourceNotDirectory(SpinalException):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class SpinalError(Exception):
|
class SourceNotFile(SpinalException):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class ValidationError(Exception):
|
class SpinalError(SpinalException):
|
||||||
|
pass
|
||||||
|
|
||||||
|
class ValidationError(SpinalException):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def callback_exclusion_v1(name, path_type):
|
def callback_exclusion_v1(name, path_type):
|
||||||
|
|
Loading…
Reference in a new issue