aswi2021jmsd-gitlab/src/exceptions/certificate_not_found_exception.py @ 9fe17d78
1 |
class CertificateNotFoundException(Exception): |
---|---|
2 |
"""
|
3 |
Exception that denotes that the caller was trying to set
|
4 |
work with non-existing certificate
|
5 |
"""
|
6 |
|
7 |
def __init__(self, id): |
8 |
self.id = id |
9 |
|
10 |
def __str__(self): |
11 |
return f"Certificate id '{self.id}' does not exist." |