human
I am working on the file "Python 복습/05일차.화_디버깅,예외,예외처리,우분투,숙제_하노이의탑/5일차_디버깅,예외,예외처리,우분투.ipynb".
The first task is:
우리만의 예외처리 class를 만들어보겠다.
Can you write Python program for it?
assistant
#Here is the Python program you requested.

def fibo(x):
    if x < 0:
#         err = FibonacciShouldNotHaveNegativeNumberError()
#         raise err
        #일반적으로 위와 같은 2줄이 아닌 아래와 같은 1줄로 적는다.
    
        raise FibonacciShouldNotHaveNegativeNumberError()
    
    if x == 0:
        return 0
    if x == 1:
        return 1
    return fibo(x-1) + fibo(x-2)

#Exception Class
class FibonacciShouldNotHaveNegativeNumberError(Exception):
    
    def __init__(self):
        pass