forked from artyom-beilis/cppcms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcppcms_error_category.h
More file actions
36 lines (30 loc) · 1007 Bytes
/
Copy pathcppcms_error_category.h
File metadata and controls
36 lines (30 loc) · 1007 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
///////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2008-2012 Artyom Beilis (Tonkikh) <[email protected]>
//
// See accompanying file COPYING.TXT file for licensing details.
//
///////////////////////////////////////////////////////////////////////////////
#ifndef CPPCMS_ERROR_CATEGORY_H
#define CPPCMS_ERROR_CATEGORY_H
#include <cppcms/config.h>
#include <booster/system_error.h>
namespace cppcms {
namespace impl {
namespace errc {
enum {
ok,
protocol_violation
};
}
class error_category : public booster::system::error_category {
public:
error_category() {}
error_category(error_category &&) {}
virtual char const *name() const noexcept;
virtual std::string message(int cat) const;
};
extern const error_category cppcms_category;
}
}
#endif