new GitError(message, code)
GitError constructor.
Parameters:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
message |
String |
<optional> |
'No message' | The error description. Set from giterr_last->message. |
code |
Integer |
<optional> |
git.raw.Error.codes.GITERR_INVALID | The error code. Set from giterr_last->klass |
- Source:
- error.js, line 11
Members
-
<readonly> codes :Integer
-
Refer to vendor/libgit2/include/git2/errors.h for error code definitions.
- Source:
- error.js, line 28
Properties:
Name Type Default Description GITERR_NOMEMORY
Integer git.raw.Error.codes.GITERR_NOMEMORY 0 GITERR_OS
Integer git.raw.Error.codes.GITERR_OS 1 GITERR_INVALID
Integer git.raw.Error.codes.GITERR_INVALID 2 GITERR_REFERENCE
Integer git.raw.Error.codes.GITERR_REFERENCE 3 GITERR_ZLIB
Integer git.raw.Error.codes.GITERR_ZLIB 4 GITERR_REPOSITORY
Integer git.raw.Error.codes.GITERR_REPOSITORY 5 GITERR_CONFIG
Integer git.raw.Error.codes.GITERR_CONFIG 6 GITERR_REGEX
Integer git.raw.Error.codes.GITERR_REGEX 7 GITERR_ODB
Integer git.raw.Error.codes.GITERR_ODB 8 GITERR_INDEX
Integer git.raw.Error.codes.GITERR_INDEX 9 GITERR_OBJECT
Integer git.raw.Error.codes.GITERR_OBJECT 10 GITERR_NET
Integer git.raw.Error.codes.GITERR_NET 11 GITERR_TAG
Integer git.raw.Error.codes.GITERR_TAG 12 GITERR_TREE
Integer git.raw.Error.codes.GITERR_TREE 13 -
<readonly> returnCodes :Integer
-
Refer to vendor/libgit2/include/git2/errors.h for return code definitions.
- Source:
- error.js, line 51
Properties:
Name Type Default Description GIT_OK
Integer git.raw.Error.returnCodes.GIT_OK 0 GIT_ERROR
Integer git.raw.Error.returnCodes.GIT_ERROR -1 GIT_ENOTFOUND
Integer git.raw.Error.returnCodes.GIT_ENOTFOUND -3 GIT_EEXISTS
Integer git.raw.Error.returnCodes.GIT_EEXISTS -4 GIT_EAMBIGUOUS
Integer git.raw.Error.returnCodes.GIT_EAMBIGUOUS -5 GIT_EBUFS
Integer git.raw.Error.returnCodes.GIT_EBUFS -6 GIT_PASSTHROUGH
Integer git.raw.Error.returnCodes.GIT_PASSTHROUGH -30 GIT_ITEROVER
Integer git.raw.Error.returnCodes.GIT_ITEROVER -31