-
Notifications
You must be signed in to change notification settings - Fork 15
customexception
choisungwook edited this page Jun 2, 2021
·
2 revisions
class UserDefinedException(Exception):
def __init__(self, message):
self.message = message
def __str__(self):
return self.message
from exception import UserDefinedException
try:
a = "helloworld"
raise UserDefinedException("do you see me?")
except Exception as e:
print(f"error: {e}")
from exception import UserDefinedException
def ping_to_configIP():
try:
a = 3/0
except Exception as e:
raise UserDefinedException(f"[-] error: {e}")
try:
ping_to_configIP()
except Exception as e:
print(f"{e}")
쿠버네티스
- helm차트
- 템플릿
- argocd
- cert-manager
- nexus
- 기타
리눅스
개발
기타
-
vagrant
-
jenkins
-
ansible
-
gitlab
-
redis
-
기타