src: refactored ErrorInfo to be used as standard error type outside of Storage
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user