blob: 15d298b3e8b795fb91e199e72c1d7c0be917e66f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include "cru/common/ErrnoException.hpp"
#include <errno.h>
namespace cru {
ErrnoException::ErrnoException(const String& message)
: ErrnoException(message, errno) {}
ErrnoException::ErrnoException(const String& message, int errno_code)
: Exception(Format(u"{}. Errno is {}.", message, errno_code)),
errno_code_(errno_code) {}
} // namespace cru
|