errors

package
v0.0.1-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DifLogError

type DifLogError struct {
	Code    ErrorCode
	Message string
	Err     error
}

func NewDifLogError

func NewDifLogError(code ErrorCode, message string, err error) *DifLogError

func (*DifLogError) Error

func (e *DifLogError) Error() string

func (*DifLogError) Unwrap

func (e *DifLogError) Unwrap() error

type ErrorCode

type ErrorCode string
const (
	ErrNotInitialized     ErrorCode = "NOT_INITIALIZED"
	ErrAlreadyInitialized ErrorCode = "ALREADY_INITIALIZED"
	ErrNoStagedContexts   ErrorCode = "NO_STAGED_CONTEXTS"
	ErrContextNotFound    ErrorCode = "CONTEXT_NOT_FOUND"
	ErrCommitNotFound     ErrorCode = "COMMIT_NOT_FOUND"
	ErrBranchNotFound     ErrorCode = "BRANCH_NOT_FOUND"
	ErrBranchExists       ErrorCode = "BRANCH_EXISTS"
	ErrRemoteNotSet       ErrorCode = "REMOTE_NOT_SET"
	ErrAIToolNotDetected  ErrorCode = "AI_TOOL_NOT_DETECTED"
	ErrStorageFailure     ErrorCode = "STORAGE_FAILURE"
	ErrHashingFailure     ErrorCode = "HASHING_FAILURE"
	ErrRemoteFailure      ErrorCode = "REMOTE_FAILURE"
	ErrInvalidArgument    ErrorCode = "INVALID_ARGUMENT"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL