terrors

package
v0.1.23 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: MIT Imports: 0 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TError

type TError int

TError represents an error type in the application.

const (
	NotFound                 TError = iota + 10000
	DatabaseErr                     // database error
	ParametersAreWrong              // The parameters are wrong.
	CidToHashFiled                  // cid to hash failed
	UserStorageSizeNotEnough        // Insufficient user storage space
	UserNotFound                    // Unable to be found by the user
	NoDuplicateUploads              // No duplicate uploads
	BusyServer                      // Busy server
	NotFoundNode                    // Can't find the node.
	RequestNodeErr                  // Request node error
	MarshalErr                      // Marshal error

	VisitShareLinkOutOfMaxCount // visit share link out of max count
	VerifyTokenError            // verify token error
	OutOfMaxAPIKeyLimit         // out of max api key limit
	APPKeyAlreadyExist          // the APPKey already exist
	APPKeyNotFound              // the APPKey not found
	APIKeyACLError              // api key access control list error
	GroupNotEmptyCannotBeDelete // the group is not empty and cannot be deleted
	GroupNotExist               // group not exist
	GroupLimit                  // group limit
	CannotMoveToSubgroup        // cannot move to subgroup
	RootGroupCannotMoved        // the root group cannot be moved
	GroupsAreSame               // groups are the same

	NodeIPInconsistent // node ip inconsistent
	NodeDeactivate     // node deactivate
	NodeOffline        // node offline

	GenerateAccessToken // generate access token error
	HashNotFound        // asset hash not found
	AssetNotFound       // asset not found

	ForceOffline // node force offline
	InvalidAsset

	Success = 0
	Unknown = -1
)

NotFound indicates that a resource was not found.

func (TError) Int

func (e TError) Int() int

Int returns the integer representation of the TError.

func (TError) String

func (e TError) String() string

Jump to

Keyboard shortcuts

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