FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cppcms/cppcms/cppcms_error.h at master · artyom-beilis/cppcms · GitHub
artyom-beilis
/
cppcms
Public
Notifications
You must be signed in to change notification settings
Fork
120
Star
529
Code
Issues
40
Pull requests
8
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cppcms
/
cppcms
/
cppcms_error.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
36 lines (32 loc) · 1.11 KB
Breadcrumbs
cppcms
/
cppcms
/
cppcms_error.h
Copy path
File metadata and controls
36 lines (32 loc) · 1.11 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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) <artyomtnk@yahoo.com>
//
//
See accompanying file COPYING.TXT file for licensing details.
//
//
/////////////////////////////////////////////////////////////////////////////
#
ifndef
CPPCMS_ERROR_H
#
define
CPPCMS_ERROR_H
#
include
<
cppcms/defs.h
>
#
include
<
string
>
#
include
<
booster/backtrace.h
>
namespace
cppcms
{
//
/
//
/ \brief Exception thrown by CppCMS framework.
//
/
//
/ Every exception that is thrown from CppCMS modules derived from this exception.
//
/
class
CPPCMS_API
cppcms_error : public booster::runtime_error {
std::string
strerror
(
int
err);
public:
//
/
//
/ Create an object with error code err (errno) and a message \a error
//
/
cppcms_error
(
int
err,std::string
const
&error);
//
/
//
/ Create an object with message \a error
//
/
cppcms_error
(std::string
const
&error) : booster::runtime_error(error) {};
};
}
#
endif
Back
|
FazBrowse Home
|
New Git URL