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

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

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

    Java 企業應用
    不要溫柔的走入那個良夜
    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 閱讀(362) 評論(0)  編輯  收藏

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


    網站導航:
     
     
    主站蜘蛛池模板: 亚洲福利秒拍一区二区| 亚洲第一页综合图片自拍| 男女作爱免费网站| 亚洲免费无码在线| 久久国产精品国产自线拍免费| 无码精品国产一区二区三区免费 | 亚洲AV无码一区二区三区国产| 亚洲无线一二三四区手机| 亚洲精品字幕在线观看| 亚洲视频欧洲视频| 亚洲精品精华液一区二区| 九一在线完整视频免费观看| 日本免费中文字幕| 成年私人影院免费视频网站| 国产成人免费A在线视频| 久久亚洲2019中文字幕| 亚洲福利电影一区二区?| 久久亚洲精品无码av| 中文在线免费看视频| 免费精品国产自产拍在 | 麻豆一区二区免费播放网站| 国产无遮挡又黄又爽免费视频 | 久久综合日韩亚洲精品色| 亚洲一区二区三区免费视频| 羞羞漫画小舞被黄漫免费| 久久精品免费观看国产| 午夜一级毛片免费视频| 国产l精品国产亚洲区在线观看| 亚洲人成网男女大片在线播放| 一本久久A久久免费精品不卡| 每天更新的免费av片在线观看| 四虎影视精品永久免费网站| 亚洲精品免费在线观看| 久久亚洲中文字幕无码| 四虎影视成人永久免费观看视频| 成人人观看的免费毛片| 精品亚洲综合久久中文字幕| 亚洲狠狠色丁香婷婷综合| 久久青青草原国产精品免费| 国产大片免费观看中文字幕| 亚洲日本一区二区三区|