src: refactored ErrorInfo to be used as standard error type outside of Storage

This commit is contained in:
Eberhard Graether
2016-10-21 14:48:20 +02:00
parent a5613715db
commit 0e8c0ee18a
20 changed files with 85 additions and 115 deletions
+2 -26
View File
@@ -1,32 +1,8 @@
#ifndef ERROR_INFO_H
#define ERROR_INFO_H
#include "utility/file/FilePath.h"
#include "utility/types.h"
#include "data/StorageTypes.h"
struct ErrorInfo
{
ErrorInfo()
: id(0)
, isFatal(false)
, isIndexed(false)
{
}
ErrorInfo(const std::string& message, const FilePath& filePath, Id id, bool isFatal, bool isIndexed)
: message(message)
, filePath(filePath)
, id(id)
, isFatal(isFatal)
, isIndexed(isIndexed)
{
}
std::string message;
FilePath filePath;
Id id;
bool isFatal;
bool isIndexed;
};
typedef StorageError ErrorInfo;
#endif // ERROR_INFO_H