Hacked By AnonymousFox
�
��Yc @@ s� d Z d d l m Z d d l Z d d l Z d d l m Z d d l m Z m Z d Z
d e f d
� � YZ e
e d � r� d � Z n d
� Z d e f d � � YZ d e f d � � YZ d e f d � � YZ d S( s�
raven.events
~~~~~~~~~~~~
:copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
i ( t absolute_importN( t
to_unicode( t get_stack_infot iter_traceback_framest BaseEventt Exceptiont Messaget Queryc B@ s, e Z d � Z d � Z d � Z d � Z RS( c C@ s | | _ t j t � | _ d S( N( t clientt loggingt getLoggert __name__t logger( t selfR ( ( s= /opt/alt/python27/lib/python2.7/site-packages/raven/events.pyt __init__ s c C@ s
t � d S( N( t NotImplementedError( R
t data( ( s= /opt/alt/python27/lib/python2.7/site-packages/raven/events.pyt to_string s c K@ s i S( N( ( R
t kwargs( ( s= /opt/alt/python27/lib/python2.7/site-packages/raven/events.pyt capture s c C@ s | j j | � S( N( R t transform( R
t value( ( s= /opt/alt/python27/lib/python2.7/site-packages/raven/events.pyR s ( R t
__module__R R R R ( ( ( s= /opt/alt/python27/lib/python2.7/site-packages/raven/events.pyR s t __suppress_context__c c@ s� | V| \ } } } t � } | j | � xl t r� | j rH | j } n | j } | | k ra Pn | j | � | d k r~ Pn t | � | | j f Vq- Wd S( s�
Return a generator iterator over an exception's chain.
The exceptions are yielded from outermost to innermost (i.e. last to
first when viewing a stack trace).
N( t sett addt TrueR t __cause__t __context__t Nonet typet
__traceback__( t exc_infot exc_typet exct
exc_tracebackt context( ( s= /opt/alt/python27/lib/python2.7/site-packages/raven/events.pyt _chained_exceptions( s
c c@ s | Vd S( N( ( R ( ( s= /opt/alt/python27/lib/python2.7/site-packages/raven/events.pyR% C s c B@ s2 e Z d Z d Z d � Z d � Z d d � Z RS( s�
Exceptions store the following metadata:
- value: 'My exception value'
- type: 'ClassName'
- module '__builtin__' (i.e. __builtin__.TypeError)
- frames: a list of serialized frames (see _get_traceback_frames)
t exceptionc C@ s= | | j d d } | d r5 d | d | d f S| d S( Nt valuesi����R s %s: %sR ( t name( R
R R"