mirror of
https://github.com/vimpunk/mio.git
synced 2025-12-06 16:57:01 +08:00
Throw std::system_error
This commit is contained in:
parent
2e048e5a25
commit
56aaf4e71f
@ -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); }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -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); }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user