# -*- coding:utf-8 -*-
__author__ = "Alex Li"


class AlexError(Exception):
    def __init__(self, msg):
        self.message = msg
    # def __str__(self):
    #     return 'sdfsf'
try:
    raise AlexError(u'数据库连不上')
except AlexError as e:
    print (e.message)
cfd9f234d09fba886568773e88f12a872b707f5e
<mask token>


class AlexError(Exception):
    <mask token>


<mask token>

<mask token>


class AlexError(Exception):

    def __init__(self, msg):
        self.message = msg


<mask token>

<mask token>


class AlexError(Exception):

    def __init__(self, msg):
        self.message = msg


try:
    raise AlexError(u'数据库连不上')
except AlexError as e:
    print(e.message)

__author__ = 'Alex Li'


class AlexError(Exception):

    def __init__(self, msg):
        self.message = msg


try:
    raise AlexError(u'数据库连不上')
except AlexError as e:
    print(e.message)

# -*- coding:utf-8 -*-
__author__ = "Alex Li"


class AlexError(Exception):
    def __init__(self, msg):
        self.message = msg
    # def __str__(self):
    #     return 'sdfsf'
try:
    raise AlexError(u'数据库连不上')
except AlexError as e:
    print (e.message)