Throw std::system_error

This commit is contained in:
AlanAtWork 2018-10-25 10:40:22 -05:00
parent 2e048e5a25
commit 56aaf4e71f
2 changed files with 4 additions and 4 deletions

View File

@ -112,7 +112,7 @@ public:
{
std::error_code error;
map(path, offset, length, error);
if(error) { throw error; }
if(error) { throw std::system_error(error); }
}
/**
@ -123,7 +123,7 @@ public:
{
std::error_code error;
map(handle, offset, length, error);
if(error) { throw error; }
if(error) { throw std::system_error(error); }
}
/**

View File

@ -96,7 +96,7 @@ public:
{
std::error_code error;
map(path, offset, length, error);
if(error) { throw error; }
if(error) { throw std::system_error(error); }
}
/**
@ -107,7 +107,7 @@ public:
{
std::error_code error;
map(handle, offset, length, error);
if(error) { throw error; }
if(error) { throw std::system_error(error); }
}
/**