FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
git2cpp/src/utils/git_exception.hpp at 0.0.12 · QuantStack/git2cpp · GitHub
QuantStack
git2cpp
Repository navigation
Code
Issues
6
(6)
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
git2cpp
/
src
/
utils
/
git_exception.hpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
30 lines (21 loc) · 548 Bytes
Breadcrumbs
git2cpp
/
src
/
utils
/
git_exception.hpp
Copy path
File metadata and controls
30 lines (21 loc) · 548 Bytes
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
#
pragma
once
#
include
<
exception
>
#
include
<
string
>
enum
class
git2cpp_error_code
{
GENERIC_ERROR
= -
1
,
FILESYSTEM_ERROR
=
128
,
BAD_ARGUMENT
=
129
,
};
void
throw_if_error
(
int
exit_code);
class
git_exception
:
public
std
::exception
{
public:
git_exception
(
const
std::string_view message,
int
error_code);
git_exception
(
const
std::string_view message, git2cpp_error_code error_code);
int
error_code
()
const
;
const
char
*
what
()
const
noexcept
override
;
private:
std::string m_message;
int
m_error_code;
};
Back
|
FazBrowse Home
|
New Git URL