MCPcopy Create free account
hub / github.com/OGRECave/ogre / handleError

Method handleError

OgreMain/src/OgreScriptCompiler.cpp:205–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203 }
204
205 void ScriptCompilerListener::handleError(ScriptCompiler *compiler, uint32 code, const String &file, int line, const String &msg)
206 {
207 StringStream ss;
208 ss << "ScriptCompiler - " << ScriptCompiler::formatErrorCode(code) << " in " << file << "(" << line << ")";
209 if(!msg.empty())
210 ss << ": " << msg;
211
212 if(code == ScriptCompiler::CE_DEPRECATEDSYMBOL)
213 LogManager::getSingleton().logWarning(ss.str());
214 else
215 LogManager::getSingleton().logError(ss.str());
216 }
217
218 bool ScriptCompilerListener::handleEvent(ScriptCompiler *compiler, ScriptCompilerEvent *evt, void *retval)
219 {

Callers 1

addErrorMethod · 0.80

Calls 3

logWarningMethod · 0.80
logErrorMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected