-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexceptions.py
More file actions
64 lines (50 loc) · 2.01 KB
/
Copy pathexceptions.py
File metadata and controls
64 lines (50 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# *********************************************************************************************
# Copyright (C) 2016 Jillian Anderson, Joel Becker, Steve McColl and Dr. John McLevey
#
# This file is part of the gitnet package developed for Dr John McLevey's Networks Lab
# at the University of Waterloo. For more information, see http://networkslab.org/gitnet/.
#
# gitnet is free software: you can redistribute it and/or modify it under the terms of a
# GNU General Public License as published by the Free Software Foundation. gitnet is
# distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
# the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with gitnet.
# If not, see <http://www.gnu.org/licenses/>.
# *********************************************************************************************
class gitnetException(Exception):
pass
class RepositoryError(gitnetException):
"""
Exception given when a problem is detected when interacting with a Git repository.
"""
pass
class ParseError(gitnetException):
"""
Exception given when an error occurs during parsing.
"""
pass
class InputError(gitnetException):
"""
Exception given when the user gives an invalid input.
"""
pass
class NetworkError(gitnetException):
"""
Exception given when there is a problem converting a Log Object to a MultiGraphPlus Object.
"""
class ExportError(gitnetException):
"""
Exception given when gitnet is unable to export a given edgelist, node attribute list, or other object.
"""
class MergeError(gitnetException):
"""
Exception given when the user provides nodes to node_merge() which do not meet the initial checks
"""
pass
class GraphStatsError(gitnetException):
"""
Exception given when the network graph statistics are not generated as expected.
"""
pass