def p_exception(p):
 val = _make_struct(p[2], p[4], base_cls=TException)
 setattr(thrift_stack[(-1)], p[2], val)
 _add_thrift_meta('exceptions', val)

def p_exception ( p ) : val = _make_struct ( p [ 2 ] , p [ 4 ] , base_cls = TException ) setattr ( thrift_stack [ ( - 1 ) ] , p [ 2 ] , val ) _add_thrift_meta ( 'exceptions' , val )
exception : exception identifier { field_seq } .