aio_category.h
//
// Copyright (C) 2009-2012 Artyom Beilis (Tonkikh)
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef BOOSTER_ERROR_CATEGORY_H
#define BOOSTER_ERROR_CATEGORY_H
#include <booster/system_error.h>
namespace booster {
namespace aio {
namespace aio_error {
enum {
ok,
canceled,
select_failed,
eof,
invalid_endpoint,
no_service_provided,
prefork_not_enabled
};
class BOOSTER_API category : public system::error_category {
public:
virtual char const *name() const;
virtual std::string message(int cat) const;
};
BOOSTER_API aio_error::category const &get_category();
}
static aio_error::category const &aio_error_cat = aio_error::get_category();
}
} // booster
#endif
booster::aio::aio_error::no_service_provided
The io_service was not assigned.
Definition: aio_category.h:27
booster::aio::aio_error::ok
No error.
Definition: aio_category.h:22
booster::aio::aio_error::category
Definition: aio_category.h:34
booster::aio::aio_error::eof
End of file occured.
Definition: aio_category.h:25
booster::aio::aio_error::invalid_endpoint
The provided endpoint (address) is not valid.
Definition: aio_category.h:26
booster::system::error_category
this class represents a category of errors.
Definition: system_error.h:34
booster::aio::aio_error::get_category
BOOSTER_API aio_error::category const & get_category()
booster::aio::aio_error::canceled
Operation was canceled.
Definition: aio_category.h:23
booster::aio::aio_error::prefork_not_enabled
Prefork acceptor support is not enabled.
Definition: aio_category.h:28
booster::locale::message
basic_message< char > message
Definition: message.h:494
booster::aio::aio_error::select_failed
It was impossible to perform select operation on the file descriptor.
Definition: aio_category.h:24