32 #ifndef _QORE_TRYSTATEMENT_H
34 #define _QORE_TRYSTATEMENT_H
36 #include "qore/intern/AbstractStatement.h"
38 class TryStatement :
public AbstractStatement {
40 DLLLOCAL TryStatement(
const QoreProgramLocation* loc,
class StatementBlock* t,
class StatementBlock* c,
char* p,
41 const QoreTypeInfo* typeInfo, QoreParseTypeInfo* parseTypeInfo,
const QoreProgramLocation* vloc);
43 DLLLOCAL
virtual ~TryStatement();
45 DLLLOCAL
virtual bool hasFinalReturn()
const;
47 DLLLOCAL
virtual void parseCommit(
QoreProgram* pgm);
50 class StatementBlock* try_block;
51 class StatementBlock* catch_block;
55 const QoreTypeInfo* typeInfo;
56 QoreParseTypeInfo* parseTypeInfo;
57 const QoreProgramLocation* loc;
60 DLLLOCAL
virtual int parseInitImpl(QoreParseContext& parse_context);
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:48
supports parsing and executing Qore-language code, reference counted, dynamically-allocated only
Definition: QoreProgram.h:127
The main value class in Qore, designed to be passed by value.
Definition: QoreValue.h:275