@@ -0,0 +1,655 @@
+class ShortInputException(Exception):%0A    '''A user-defined exception class'''%0A    def __init__(self, length,atleast):%0A    Edited by LATEX80ubA Byte of Python%E7%AC%AC14%E7%AB%A0 %E5%BC%82%E5%B8%B8%0A      Exception.__init__(self)%0A      self.length = length%0A      self.atleast = atleast%0A%0Atry:%0A    text = input('Enter something--%3E')%0A    if len(text) %3C 3:%0A    raise ShortInputException(len(text),3)%0A    #other work can continue as usual here%0Aexcept EOFError:%0A    print('Why did you do an EOF on me')%0Aexcept ShortInputException as ex:%0A    print('ShortInputException The input was %7B0%7D long, excepted%5C%0A    atleast %7B1%7D'.format(ex.length, ex.atleast))%0Aelse:%0A    print('No exception was raised.')%0A

Create ch14_05_try_except.py