Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AccessControlError = func(d string) XrpcError { return NewXrpcError( WithTag("AccessControl"), WithError(fmt.Errorf("DID does not have sufficent access permissions for this operation: %s", d)), ) }
View Source
var AuthError = func(err error) XrpcError { return NewXrpcError( WithTag("Auth"), WithError(fmt.Errorf("signature verification failed: %w", err)), ) }
View Source
var GitError = func(e error) XrpcError { return NewXrpcError( WithTag("Git"), WithError(fmt.Errorf("git error: %w", e)), ) }
View Source
var InvalidRepoError = func(r string) XrpcError { return NewXrpcError( WithTag("InvalidRepo"), WithError(fmt.Errorf("supplied at-uri is not a repo: %s", r)), ) }
View Source
var MissingActorDidError = NewXrpcError( WithTag("MissingActorDid"), WithMessage("actor DID not supplied"), )
View Source
var OwnerNotFoundError = NewXrpcError( WithTag("OwnerNotFound"), WithMessage("owner not set for this service"), )
View Source
var RecordExistsError = func(r string) XrpcError { return NewXrpcError( WithTag("RecordExists"), WithError(fmt.Errorf("repo already exists: %s", r)), ) }
View Source
var RefNotFoundError = NewXrpcError( WithTag("RefNotFound"), WithMessage("failed to access ref"), )
View Source
var RepoExistsError = func(r string) XrpcError { return NewXrpcError( WithTag("RepoExists"), WithError(fmt.Errorf("repo already exists: %s", r)), ) }
View Source
var RepoNotFoundError = NewXrpcError( WithTag("RepoNotFound"), WithMessage("failed to access repository"), )
Functions ¶
This section is empty.
Types ¶
type XrpcError ¶
Source Files
¶
- errors.go
Click to show internal directories.
Click to hide internal directories.