<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)  編輯  收藏

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


    網站導航:
     
     
    主站蜘蛛池模板: 精品国产_亚洲人成在线高清| 亚洲午夜福利精品无码| 亚洲狠狠久久综合一区77777| 中文精品人人永久免费| 亚洲啪啪AV无码片| 免费91最新地址永久入口| 亚洲日本一区二区三区| jjizz全部免费看片| 亚洲中字慕日产2020| 最近免费中文字幕4| 精品无码专区亚洲| 亚洲欧洲久久av| GOGOGO高清免费看韩国| 亚洲人成电影在线天堂| 亚洲成年人免费网站| 亚洲欧美一区二区三区日产| 成人免费午间影院在线观看| 色天使色婷婷在线影院亚洲| 亚洲中文字幕成人在线| 免费成人在线电影| 亚洲mv国产精品mv日本mv| 国产成人啪精品视频免费网| 黄色视屏在线免费播放| 色婷婷亚洲十月十月色天| 成人无码区免费A片视频WWW| 毛片亚洲AV无码精品国产午夜 | 黄页网站在线观看免费高清| 亚洲一区二区三区高清在线观看 | 亚洲日韩在线第一页| 国产一区二区免费| 亚洲国产成人99精品激情在线| 国产大片91精品免费看3| 国产无遮挡色视频免费观看性色 | 91短视频在线免费观看| 亚洲精品又粗又大又爽A片| 亚洲真人日本在线| 成年人免费的视频| 亚洲阿v天堂在线2017免费| 亚洲国色天香视频| 亚洲综合国产精品第一页| 114一级毛片免费|