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