Templated class to shadow the error handling for Coco/R parsers. More...
Public Member Functions | |
CocoParserErrors (const word &name) | |
Construct with given name. More... | |
virtual | ~CocoParserErrors () |
Destructor. More... | |
virtual const word & | name () const |
Return the name issued for warnings. More... | |
virtual word & | name () |
Return the name issued for warnings. More... | |
virtual void | Warning (const StringClass &msg) |
Handle a general warning 'msg'. More... | |
virtual void | Warning (int line, int col, const StringClass &msg) |
Handle a general warning 'msg'. More... | |
virtual void | Error (int line, int col, const StringClass &msg) |
Handle general error 'msg' (eg, a semantic error) More... | |
virtual void | Error (const StringClass &msg) |
Handle general error 'msg' (eg, a semantic error) More... | |
virtual void | Exception (const StringClass &msg) |
Handle a general exception 'msg'. More... | |
Private Attributes | |
word | name_ |
The name issued in warnings and errors. More... | |
Templated class to shadow the error handling for Coco/R parsers.
Definition at line 47 of file CocoParserErrors.H.
|
inline |
Construct with given name.
Definition at line 61 of file CocoParserErrors.H.
|
inlinevirtual |
Destructor.
Definition at line 69 of file CocoParserErrors.H.
|
inlinevirtual |
Return the name issued for warnings.
Definition at line 76 of file CocoParserErrors.H.
References CocoParserErrors< BaseClass, StringClass >::name_.
|
inlinevirtual |
Return the name issued for warnings.
Definition at line 82 of file CocoParserErrors.H.
References CocoParserErrors< BaseClass, StringClass >::name_.
|
inlinevirtual |
Handle a general warning 'msg'.
Definition at line 91 of file CocoParserErrors.H.
References Foam::endl(), and WarningInFunction.
|
inlinevirtual |
Handle a general warning 'msg'.
Definition at line 98 of file CocoParserErrors.H.
References Foam::endl(), and WarningInFunction.
|
inlinevirtual |
Handle general error 'msg' (eg, a semantic error)
Definition at line 106 of file CocoParserErrors.H.
References Foam::endl(), Foam::exit(), Foam::FatalError, and FatalErrorInFunction.
Referenced by CocoParserErrors< BaseClass, StringClass >::Exception().
|
inlinevirtual |
Handle general error 'msg' (eg, a semantic error)
Definition at line 114 of file CocoParserErrors.H.
References Foam::endl(), Foam::exit(), Foam::FatalError, and FatalErrorInFunction.
|
inlinevirtual |
Handle a general exception 'msg'.
Definition at line 122 of file CocoParserErrors.H.
References CocoParserErrors< BaseClass, StringClass >::Error().
|
private |
The name issued in warnings and errors.
Definition at line 54 of file CocoParserErrors.H.
Referenced by CocoParserErrors< BaseClass, StringClass >::name().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.