(p)
exception : EXCEPTION IDENTIFIER '{' field_seq '}' type_annotations
exception : EXCEPTION IDENTIFIER '{' field_seq '}' type_annotations
exception : EXCEPTION IDENTIFIER { field_seq } type_annotations
def p_exception(p):
    '''exception : EXCEPTION IDENTIFIER '{' field_seq '}' type_annotations '''
    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 )