mirror of
https://github.com/vimpunk/mio.git
synced 2025-12-06 08:46:51 +08:00
commit
a345b8b92d
@ -112,7 +112,7 @@ public:
|
|||||||
{
|
{
|
||||||
std::error_code error;
|
std::error_code error;
|
||||||
map(path, offset, length, 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;
|
std::error_code error;
|
||||||
map(handle, offset, length, 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;
|
std::error_code error;
|
||||||
map(path, offset, length, 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;
|
std::error_code error;
|
||||||
map(handle, offset, length, 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