public Node getHead()

            throws IllegalStateException {

        /*

        * Function input: Nothing

        *

        * Job:

        *  Return the head node.

        *

        *  If there is no head, raise an IllegalStateException.

        *  You do not have to specify its message.

        */

        return null;

    }


이중 연결 리스트에서 헤드를 리턴하는 메서드고, 저게 교수가 준 양식임
그니까 헤드가 없을 땐 exception을 발생시키고 헤드가 있을 땐 헤드를 리턴하게 만들면 된다는 건 알겠는데
예외를 어케 발생시키는 거?