<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Java 企業(yè)應用
    不要溫柔的走入那個良夜
    Online Docs
    http://docs.python.org/2.6/library/exceptions.html
    The class hierarchy for built-in exceptions is:

    BaseException
     
    +-- SystemExit
     
    +-- KeyboardInterrupt
     
    +-- GeneratorExit
     
    +-- Exception
          
    +-- StopIteration
          
    +-- StandardError
          
    |    +-- BufferError
          
    |    +-- ArithmeticError
          
    |    |    +-- FloatingPointError
          
    |    |    +-- OverflowError
          
    |    |    +-- ZeroDivisionError
          
    |    +-- AssertionError
          
    |    +-- AttributeError
          
    |    +-- EnvironmentError
          
    |    |    +-- IOError
          
    |    |    +-- OSError
          
    |    |         +-- WindowsError (Windows)
          
    |    |         +-- VMSError (VMS)
          
    |    +-- EOFError
          
    |    +-- ImportError
          
    |    +-- LookupError
          
    |    |    +-- IndexError
          
    |    |    +-- KeyError
          
    |    +-- MemoryError
          
    |    +-- NameError
          
    |    |    +-- UnboundLocalError
          
    |    +-- ReferenceError
          
    |    +-- RuntimeError
          
    |    |    +-- NotImplementedError
          
    |    +-- SyntaxError
          
    |    |    +-- IndentationError
          
    |    |         +-- TabError
          
    |    +-- SystemError
          
    |    +-- TypeError
          
    |    +-- ValueError
          
    |         +-- UnicodeError
          
    |              +-- UnicodeDecodeError
          
    |              +-- UnicodeEncodeError
          
    |              +-- UnicodeTranslateError
          
    +-- Warning
               
    +-- DeprecationWarning
               
    +-- PendingDeprecationWarning
               
    +-- RuntimeWarning
               
    +-- SyntaxWarning
               
    +-- UserWarning
               
    +-- FutureWarning
           
    +-- ImportWarning
           
    +-- UnicodeWarning
           
    +-- BytesWarning
    exception BaseException

    The base class for all built-in exceptions. It is not meant to be directly inherited by user-defined classes (for that use Exception). If str() or unicode() is called on an instance of this class, the representation of the argument(s) to the instance are returned or the empty string when there were no arguments. All arguments are stored in args as a tuple.

    New in version 2.5.

    exception Exception

    All built-in, non-system-exiting exceptions are derived from this class. All user-defined exceptions should also be derived from this class.

    Changed in version 2.5: Changed to inherit from BaseException.

    '''
    Created on Aug 152013
    '''
    class MyException(Exception):
    #     
    """My documentation"""
    class MyException(Exception):
        pass
    class MyException(Exception):
    #     def _get_message(self): 
    #         
    return self.args[0]
    #     def _set_message(self, message): 
    #         self._message 
    = message
    #     message 
    = property(_get_message, _set_message)

    try:
        raise MyException(
    'description1''description2')
    except MyException as my:
        print str(my)
        print unicode(my) 
        
    try:
        raise MyException(u
    'description1', u'description2')
    except MyException as my:
        print str(my)  
        print unicode(my)  
       
    posted on 2013-08-16 10:23 cpegtop 閱讀(366) 評論(0)  編輯  收藏

    只有注冊用戶登錄后才能發(fā)表評論。


    網(wǎng)站導航:
     
     
    主站蜘蛛池模板: www.亚洲精品.com| 亚洲色av性色在线观无码| 亚洲国产免费综合| 亚洲最大福利视频网站| 亚洲人成色7777在线观看| 久久国产精品成人片免费| 亚洲AV永久无码精品一福利 | 亚洲精品国产精品乱码视色| 久久无码av亚洲精品色午夜| 国产亚洲大尺度无码无码专线| 99在线精品视频观看免费| 国产亚洲精品美女久久久久久下载| 亚洲国产精品无码久久一线| 成全视频在线观看免费高清动漫视频下载| 四虎国产精品成人免费久久 | 亚洲黄色在线播放| 国产美女无遮挡免费视频网站 | 亚洲免费在线视频| 亚洲av无码一区二区三区四区| 亚洲精品国产精品乱码视色| 女人18毛片水最多免费观看| 中文字幕视频在线免费观看 | 国内精自视频品线六区免费| 日韩大片免费观看视频播放| 亚洲成人福利在线观看| a拍拍男女免费看全片| 日本免费精品一区二区三区| 亚洲国产成人超福利久久精品| 久久午夜夜伦鲁鲁片免费无码影视| 亚洲色图校园春色| 亚洲午夜国产片在线观看| 成全视频免费高清| 18禁美女黄网站色大片免费观看 | 日本一区二区三区日本免费| 精品无码AV无码免费专区| 九九视频高清视频免费观看 | 亚洲2022国产成人精品无码区| 国产一级做a爱免费视频| 大学生一级毛片免费看| 久久久久免费精品国产小说| 黄色三级三级三级免费看|