37 #ifndef ORO_PARSE_EXCEPTION_HPP 38 #define ORO_PARSE_EXCEPTION_HPP 42 #include "rtt-scripting-config.h" 43 #include "../base/DataSourceBase.hpp" 45 #ifdef ORO_PRAGMA_INTERFACE 51 class parse_exception;
69 int line,
int column )
70 : mpe( pe ), mfile( file ), mline( line ), mcolumn( column )
75 const std::string what()
const;
91 virtual const std::string what()
const = 0;
168 return "The string \"" + mident +
"\" cannot be used as an identifer.";
198 return "Semantic error: " + mdesc;
206 const std::string&
desc()
const 228 return "Fatal Semantic error: " + mdesc;
236 const std::string&
desc()
const 259 return "Parse Failure Exception: " + mreason;
284 return "Syntactic error: " + mdesc;
292 const std::string&
desc()
const 305 : mname( name ), mmeth(meth)
311 return "Service or Task \"" + mname +
"\" has no Peer or Service "+mmeth+
" (or "+mname+
" was not found at all).";
332 const std::string& componentname,
const std::string& methodname )
333 : mcomponentname( componentname ), mmethodname( methodname )
339 return "No method \"" + mmethodname +
"\" registered for the object or task \"" + mcomponentname +
"\".";
349 return mcomponentname;
367 const std::string& componentname,
const std::string& methodname,
368 int expectednumber,
int receivednumber )
369 : mcomponentname( componentname ), mmethodname( methodname ),
370 mexpectednumber( expectednumber ),
371 mreceivednumber( receivednumber )
375 const std::string what()
const;
384 return mcomponentname;
394 return mexpectednumber;
399 return mreceivednumber;
413 const std::string& componentname,
const std::string& methodname,
414 int argnumber,
const std::string& expected,
const std::string& received )
415 : mcomponentname( componentname ), mmethodname( methodname ),
416 margnumber( argnumber ), mexpected( expected), mreceived( received )
420 const std::string what()
const;
429 return mcomponentname;
453 const std::string
what()
const throw()
455 return "Use of undefined value: \"" + mname +
"\".";
474 std::vector<base::DataSourceBase::shared_ptr> args);
476 const std::string
what()
const {
return margsig; }
const std::string & componentName() const
const std::string what() const
const std::string what() const
const std::string what() const
const std::string & desc() const
parse_exception_wrong_number_of_arguments(const std::string &componentname, const std::string &methodname, int expectednumber, int receivednumber)
parse_exception_wrong_type_of_argument(const std::string &componentname, const std::string &methodname, int argnumber, const std::string &expected, const std::string &received)
parse_exception_undefined_value(const std::string &name)
parse_exception_parser_fail(const std::string &reason)
semantic_parse_exception()
parse_exception_illegal_identifier(const std::string &ident)
const std::string & desc() const
virtual ~parse_exception()
const std::string & identifier() const
parse_exception_wrong_type_of_argument * copy() const
const std::string & methodName() const
int expectedNumber() const
const std::string what() const
const std::string & methodName() const
file_parse_exception(parse_exception *pe, const std::string &file, int line, int column)
const std::string what() const
int argumentNumber() const
int receivedNumber() const
const std::string what() const
parse_exception_undefined_value * copy() const
parse_exception_no_such_constructor * copy() const
std::string mcomponentname
const std::string what() const
parse_exception_semantic_error * copy() const
const std::string & desc() const
parse_exception_no_such_method_on_component * copy() const
const std::string & componentName() const
parse_exception_syntactic_error * copy() const
parse_exception_fatal_semantic_error * copy() const
parse_exception_syntactic_error(const std::string &desc)
parse_exception_parser_fail * copy() const
const std::string & componentName() const
const std::string what() const
std::string mcomponentname
const std::string what() const
std::string mcomponentname
const std::string & componentName() const
parse_exception_semantic_error(const std::string &desc)
fatal_semantic_parse_exception()
parse_exception_fatal_semantic_error(const std::string &desc)
parse_exception_no_such_component(const std::string &name, const std::string &meth)
parse_exception_no_such_component * copy() const
parse_exception_illegal_identifier * copy() const
syntactic_parse_exception()
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
parse_exception_wrong_number_of_arguments * copy() const
parse_exception_no_such_method_on_component(const std::string &componentname, const std::string &methodname)
fatal_syntactic_parse_exception()
const std::string & name()
const std::string & methodName() const