2010-02-28 23:18:03 +08:00
|
|
|
# -*- coding: utf8 -*-
|
|
|
|
|
|
|
|
class BrokenException(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
except_args = ('Broken!', # plain exception with ASCII text
|
2010-02-28 23:24:09 +08:00
|
|
|
u'¡Broken!', # non-ASCII unicode data
|
|
|
|
'¡Broken!', # non-ASCII, utf-8 encoded bytestring
|
2010-02-28 23:18:03 +08:00
|
|
|
'\xa1Broken!', ) # non-ASCII, latin1 bytestring
|
|
|
|
|