Skip to content
Snippets Groups Projects
Select Git revision
  • main default protected
  • v0.22.1
  • v0.22.0
  • v0.21.0
  • v0.20.1
  • v0.20.0
  • v0.19.0
  • v0.18.3
  • v0.18.2
  • v0.18.1
  • v0.18.0
  • v0.17.0
  • v0.16.0
  • v0.15.0
  • v0.14.0
  • v0.13.0
  • v0.12.0
  • v0.11.0
  • v0.10.0
  • v0.9.0
  • v0.8.1
21 results

errors.go

errors.go 779 B
package fs

import (
	"gitlab.com/golang-utils/errors"
)

var (
	ErrNotSupported      = errors.Error("%s not supported by %T")
	ErrNotFound          = errors.Error("%s not found")
	ErrNotEmpty          = errors.Error("%s not empty")
	ErrAlreadyExists     = errors.Error("%s already exists")
	ErrWhileReading      = errors.Error("could not read %s: %w")
	ErrExpectedFile      = errors.Error("%s is not a file")
	ErrExpectedDir       = errors.Error("%s is not a directory")
	ErrExpectedAbsPath   = errors.Error("%s is no absolute path")
	ErrExpectedWinDrive  = errors.Error("%s is no windows drive letter")
	ErrWhileChecksumming = errors.Error("could not make checksum for file %s: %w")
	ErrChecksumNotMatch  = errors.Error("checksums did not match %v vs %v")
)