summaryrefslogtreecommitdiffstats
path: root/src/object/level/parserexceptions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/object/level/parserexceptions.cpp')
-rw-r--r--src/object/level/parserexceptions.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/object/level/parserexceptions.cpp b/src/object/level/parserexceptions.cpp
index d5c4620..b495de7 100644
--- a/src/object/level/parserexceptions.cpp
+++ b/src/object/level/parserexceptions.cpp
@@ -19,6 +19,8 @@
#include "object/level/parser.h"
+#include <boost/lexical_cast.hpp>
+
CLevelParserException::CLevelParserException(std::string message) noexcept
{
m_message = message;
@@ -30,11 +32,11 @@ const char* CLevelParserException::what() const noexcept
}
CLevelParserExceptionMissingParam::CLevelParserExceptionMissingParam(CLevelParserParam* thisParam) noexcept
-: CLevelParserException("Missing required param "+thisParam->GetName()+" (in "+thisParam->GetLine()->GetLevel()->GetFilename()+":"+std::to_string(thisParam->GetLine()->GetLineNumber())+")")
+: CLevelParserException("Missing required param "+thisParam->GetName()+" (in "+thisParam->GetLine()->GetLevel()->GetFilename()+":"+boost::lexical_cast<std::string>(thisParam->GetLine()->GetLineNumber())+")")
{
}
CLevelParserExceptionBadParam::CLevelParserExceptionBadParam(CLevelParserParam* thisParam, std::string requestedType) noexcept
-: CLevelParserException("Unable to parse '"+thisParam->GetValue()+"' as "+requestedType+" (param '"+thisParam->GetName()+"' in "+thisParam->GetLine()->GetLevel()->GetFilename()+":"+std::to_string(thisParam->GetLine()->GetLineNumber())+")")
+: CLevelParserException("Unable to parse '"+thisParam->GetValue()+"' as "+requestedType+" (param '"+thisParam->GetName()+"' in "+thisParam->GetLine()->GetLevel()->GetFilename()+":"+boost::lexical_cast<std::string>(thisParam->GetLine()->GetLineNumber())+")")
{
-} \ No newline at end of file
+}