---
name: "Git::Raw::Error"
section: "3pm"
platform: "linux"
package: "libgit-raw-perl"
version: "0.90+ds-3+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Git::Raw::Error"
---

# Git::Raw::Error(3pm)

Error class

## NAME

Git::Raw::Error - Error class

## VERSION

version 0.90

## DESCRIPTION

A Git::Raw::Error represents an error. A Git::Raw::Error may be the result of a libgit2 error, or may be generated internally due to misuse of the API.

**WARNING**: The API of this module is unstable and may change without warning (any change will be appropriately documented in the changelog).

## METHODS

### message( )

Error message.

### file( )

Caller file.

### line( )

Caller line.

### code( )

Error code.

### category( )

The category (class) or source of the error.

## CONSTANTS

### OK

No error.

### ERROR

Generic error.

### ENOTFOUND

The eequested object could not be found.

### EEXISTS

The object already exists.

### EAMBIGUOUS

More than one object matches.

### EBUFS

Output buffer too short to hold data.

### EBAREREPO

The operation is is not allowed on a bare repository.

### EUNBORNBRANCH

`"HEAD"` refers to a branch with no commits.

### EUNMERGED

A merge is in progress.

### ENONFASTFORWARD

Reference was not fast-forwardable.

### EINVALIDSPEC

Name/ref spec was not in a valid format.

### ECONFLICT

Checkout conflicts prevented operation.

### ELOCKED

Lock file prevented operation.

### EMODIFIED

Reference value does not match expected.

### EAUTH

Authentication error.

### ECERTIFICATE

Server certificate is invalid.

### EAPPLIED

Patch/merge has already been applied.

### EPEEL

The requested peel operation is not possible.

### EEOF

Unepected `"EOF"`.

### EINVALID

Invalid operation or input.

### EUNCOMMITTED

Uncommited changes in index prevented operation.

### EDIRECTORY

The operation is not valid for a directory.

### EMERGECONFLICT

A merge conflict exists and cannot continue.

### PASSTHROUGH

Passthrough

## AUTHOR

Alessandro Ghedini \<alexbio@cpan.org\>

Jacques Germishuys \<jacquesg@cpan.org\>

## LICENSE AND COPYRIGHT

Copyright 2014 Alessandro Ghedini.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.
