FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nodegit/include/error.h at v0.0.3 · nodegit/nodegit · GitHub
nodegit
nodegit
Repository navigation
Code
Issues
344
(344)
Pull requests
21
(21)
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
nodegit
/
include
/
error.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
78 lines (71 loc) · 1.64 KB
Breadcrumbs
nodegit
/
include
/
error.h
Copy path
File metadata and controls
executable file
·
78 lines (71 loc) · 1.64 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/*
* Copyright 2011, Tim Branyen @tbranyen <tim@tabdeveloper.com>
* Dual licensed under the MIT and GPL licenses.
*/
#
ifndef
ERROR_H
#
define
ERROR_H
#
include
<
node.h
>
#
include
<
node_events.h
>
#
include
"
../vendor/libgit2/include/git2.h
"
using
namespace
node
;
/*
*
* Class: GitError
* Wrapper for libgit2 git_error.
*/
class
GitError
:
public
ObjectWrap
{
public:
/*
*
* Variable: constructor_template
* Used to create Node.js constructor.
*/
static
v8::Persistent<v8::FunctionTemplate> constructor_template;
/*
*
* Function: Initialize
* Used to intialize the EventEmitter from Node.js
*
* Parameters:
* target - v8::Object the Node.js global module object
*/
static
void
Initialize
(v8::Handle<v8::Object> target);
/*
*
* Function: StrError
* Get a read-only buffer with the raw content of a blob.
*
* Parameters:
* err - A signed int error code
*
* Returns:
* a string explaining the error code.
*/
const
char
*
StrError
(
int
err);
protected:
/*
*
* Constructor: GitError
*/
GitError
() {};
/*
*
* Deconstructor: GitError
*/
~GitError
() {};
/*
*
* Function: New
*
* Parameters:
* args v8::Arguments function call
*
* Returns:
* v8::Object args.This()
*/
static
v8::Handle<v8::Value>
New
(
const
v8::Arguments& args);
/*
*
* Function: StrError
*
* Parameters:
* args v8::Arguments function call
*
* Returns:
* v8::Object args.This()
*/
static
v8::Handle<v8::Value>
StrError
(
const
v8::Arguments& args);
};
#
endif
Back
|
FazBrowse Home
|
New Git URL