2011-05-07 18:47:11 +08:00
|
|
|
# -*- coding: utf-8 -*-
|
2012-06-08 00:08:47 +08:00
|
|
|
from __future__ import unicode_literals
|
2010-03-08 23:20:29 +08:00
|
|
|
|
2013-11-03 05:34:05 +08:00
|
|
|
|
2010-03-08 23:20:29 +08:00
|
|
|
class BrokenException(Exception):
|
|
|
|
pass
|
|
|
|
|
2012-06-08 00:08:47 +08:00
|
|
|
except_args = (b'Broken!', # plain exception with ASCII text
|
|
|
|
'¡Broken!', # non-ASCII unicode data
|
2013-11-03 05:02:56 +08:00
|
|
|
'¡Broken!'.encode('utf-8'), # non-ASCII, utf-8 encoded bytestring
|
2012-06-08 00:08:47 +08:00
|
|
|
b'\xa1Broken!', ) # non-ASCII, latin1 bytestring
|