Leon the start point

PostsAbout

8.6. User-defined Exceptions

2025년 12월 15일1 min read

  • official_ref

https://docs.python.org/3/tutorial/errors.html#user-defined-exceptions

새로운 예외는 Exception을 상속해 클래스 형태로 정의한다.
보통 메시지·원인 등을 담는 단순한 형태로 둡니다.
관례상 예외 이름은 …Error로 사용

← python 3.14으로


그래프 뷰

  • python 3.14

Created with Quartz v4.5.2 © 2026

  • GitHub
  • Discord Community