-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExceptions.py
36 lines (27 loc) · 968 Bytes
/
Exceptions.py
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
""" Exceptions.py: This file contains all exceptions required by classes in repository. """
__author__ = "Pratik Shah"
__maintainer__ = __author__
class BaseClassException(Exception):
""" Base class for all exception """
pass
class StackEmptyException(BaseClassException):
""" Class for stack empty exception """
pass
class StackFullException(BaseClassException):
""" Class for stack full exception """
pass
class OddLengthException(BaseClassException):
""" Raised this exception if string_expression length is odd """
pass
class QueueEmptyException(BaseClassException):
""" Class for queue empty exception """
pass
class QueueFullException(BaseClassException):
""" Class for queue full exception """
pass
class EmptyRootException(BaseClassException):
""" Class for empty root in singly linked list program """
pass
class ArrayLengthNotSameException(BaseClassException):
""" Class for array length is not same in ReorderArray program """
pass