errors

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Reason_name = map[int32]string{
		0:  "NotFound",
		1:  "Transform",
		2:  "NoSupportStore",
		3:  "System",
		4:  "ChunkUpload",
		5:  "Database",
		6:  "StatusProgress",
		7:  "UploadFile",
		8:  "InitStore",
		9:  "FileFormat",
		10: "AddDirectory",
		11: "UpdateDirectory",
		12: "DeleteDirectory",
		13: "NotExistFile",
		14: "AlreadyExistFileName",
		15: "NotExistDirectory",
		16: "NotExistResource",
		17: "Params",
		18: "AccessResource",
		19: "ExportFileNameDup",
		20: "ExportTaskProcess",
	}
	Reason_value = map[string]int32{
		"NotFound":             0,
		"Transform":            1,
		"NoSupportStore":       2,
		"System":               3,
		"ChunkUpload":          4,
		"Database":             5,
		"StatusProgress":       6,
		"UploadFile":           7,
		"InitStore":            8,
		"FileFormat":           9,
		"AddDirectory":         10,
		"UpdateDirectory":      11,
		"DeleteDirectory":      12,
		"NotExistFile":         13,
		"AlreadyExistFileName": 14,
		"NotExistDirectory":    15,
		"NotExistResource":     16,
		"Params":               17,
		"AccessResource":       18,
		"ExportFileNameDup":    19,
		"ExportTaskProcess":    20,
	}
)

Enum value maps for Reason.

View Source
var File_resource_error_reason_proto protoreflect.FileDescriptor

Functions

func AccessResource added in v1.0.6

func AccessResource() *errors.Error

func AccessResourceFormat added in v1.0.6

func AccessResourceFormat(format string, args ...any) *errors.Error

func AddDirectory

func AddDirectory() *errors.Error

func AddDirectoryFormat

func AddDirectoryFormat(format string, args ...any) *errors.Error

func AlreadyExistFileName

func AlreadyExistFileName() *errors.Error

func AlreadyExistFileNameFormat

func AlreadyExistFileNameFormat(format string, args ...any) *errors.Error

func ChunkUpload

func ChunkUpload() *errors.Error

func ChunkUploadFormat

func ChunkUploadFormat(format string, args ...any) *errors.Error

func Database

func Database() *errors.Error

func DatabaseFormat

func DatabaseFormat(format string, args ...any) *errors.Error

func DeleteDirectory

func DeleteDirectory() *errors.Error

func DeleteDirectoryFormat

func DeleteDirectoryFormat(format string, args ...any) *errors.Error

func ExportFileNameDup added in v1.0.8

func ExportFileNameDup() *errors.Error

func ExportFileNameDupFormat added in v1.0.8

func ExportFileNameDupFormat(format string, args ...any) *errors.Error

func ExportTaskProcess added in v1.0.8

func ExportTaskProcess() *errors.Error

func ExportTaskProcessFormat added in v1.0.8

func ExportTaskProcessFormat(format string, args ...any) *errors.Error

func FileFormat

func FileFormat() *errors.Error

func FileFormatFormat

func FileFormatFormat(format string, args ...any) *errors.Error

func InitStore

func InitStore() *errors.Error

func InitStoreFormat

func InitStoreFormat(format string, args ...any) *errors.Error

func IsAccessResource added in v1.0.6

func IsAccessResource(err error) bool

func IsAddDirectory

func IsAddDirectory(err error) bool

func IsAlreadyExistFileName

func IsAlreadyExistFileName(err error) bool

func IsChunkUpload

func IsChunkUpload(err error) bool

func IsDatabase

func IsDatabase(err error) bool

func IsDeleteDirectory

func IsDeleteDirectory(err error) bool

func IsExportFileNameDup added in v1.0.8

func IsExportFileNameDup(err error) bool

func IsExportTaskProcess added in v1.0.8

func IsExportTaskProcess(err error) bool

func IsFileFormat

func IsFileFormat(err error) bool

func IsInitStore

func IsInitStore(err error) bool

func IsNoSupportStore

func IsNoSupportStore(err error) bool

func IsNotExistDirectory

func IsNotExistDirectory(err error) bool

func IsNotExistFile

func IsNotExistFile(err error) bool

func IsNotExistResource

func IsNotExistResource(err error) bool

func IsNotFound

func IsNotFound(err error) bool

func IsParams

func IsParams(err error) bool

func IsStatusProgress

func IsStatusProgress(err error) bool

func IsSystem

func IsSystem(err error) bool

func IsTransform

func IsTransform(err error) bool

func IsUpdateDirectory

func IsUpdateDirectory(err error) bool

func IsUploadFile

func IsUploadFile(err error) bool

func NoSupportStore

func NoSupportStore() *errors.Error

func NoSupportStoreFormat

func NoSupportStoreFormat(format string, args ...any) *errors.Error

func NotExistDirectory

func NotExistDirectory() *errors.Error

func NotExistDirectoryFormat

func NotExistDirectoryFormat(format string, args ...any) *errors.Error

func NotExistFile

func NotExistFile() *errors.Error

func NotExistFileFormat

func NotExistFileFormat(format string, args ...any) *errors.Error

func NotExistResource

func NotExistResource() *errors.Error

func NotExistResourceFormat

func NotExistResourceFormat(format string, args ...any) *errors.Error

func NotFound

func NotFound() *errors.Error

func NotFoundFormat

func NotFoundFormat(format string, args ...any) *errors.Error

func Params

func Params() *errors.Error

func ParamsFormat

func ParamsFormat(format string, args ...any) *errors.Error

func StatusProgress

func StatusProgress() *errors.Error

func StatusProgressFormat

func StatusProgressFormat(format string, args ...any) *errors.Error

func System

func System() *errors.Error

func SystemFormat

func SystemFormat(format string, args ...any) *errors.Error

func Transform

func Transform() *errors.Error

func TransformFormat

func TransformFormat(format string, args ...any) *errors.Error

func UpdateDirectory

func UpdateDirectory() *errors.Error

func UpdateDirectoryFormat

func UpdateDirectoryFormat(format string, args ...any) *errors.Error

func UploadFile

func UploadFile() *errors.Error

func UploadFileFormat

func UploadFileFormat(format string, args ...any) *errors.Error

Types

type Reason

type Reason int32
const (
	Reason_NotFound             Reason = 0
	Reason_Transform            Reason = 1
	Reason_NoSupportStore       Reason = 2
	Reason_System               Reason = 3
	Reason_ChunkUpload          Reason = 4
	Reason_Database             Reason = 5
	Reason_StatusProgress       Reason = 6
	Reason_UploadFile           Reason = 7
	Reason_InitStore            Reason = 8
	Reason_FileFormat           Reason = 9
	Reason_AddDirectory         Reason = 10
	Reason_UpdateDirectory      Reason = 11
	Reason_DeleteDirectory      Reason = 12
	Reason_NotExistFile         Reason = 13
	Reason_AlreadyExistFileName Reason = 14
	Reason_NotExistDirectory    Reason = 15
	Reason_NotExistResource     Reason = 16
	Reason_Params               Reason = 17
	Reason_AccessResource       Reason = 18
	Reason_ExportFileNameDup    Reason = 19
	Reason_ExportTaskProcess    Reason = 20
)

func (Reason) Descriptor

func (Reason) Descriptor() protoreflect.EnumDescriptor

func (Reason) Enum

func (x Reason) Enum() *Reason

func (Reason) EnumDescriptor deprecated

func (Reason) EnumDescriptor() ([]byte, []int)

Deprecated: Use Reason.Descriptor instead.

func (Reason) Number

func (x Reason) Number() protoreflect.EnumNumber

func (Reason) String

func (x Reason) String() string

func (Reason) Type

func (Reason) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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