MCPcopy Create free account
hub / github.com/Super-long/ChubbyGo / Error

Method Error

BaseServer/fileSystem.go:55–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53)
54
55func (err ChubbyGoFileSystemError) Error() string{
56 var ans string
57 switch err {
58 case PathError:
59 ans = "Filename and directory have some name."
60 break
61 case CheckSumError:
62 ans = "Client send a error CheckSum."
63 break
64 case InstanceSeqError:
65 ans = "Client send a error InstanceSeq."
66 break
67 case DoesNotSupportRecursiveDeletion:
68 ans = "Does not support recursive deletion, there are still files in this directory."
69 break
70 case CannotDeleteFilesWithZeroReferenceCount:
71 ans = "Deleting a file with a reference count of zero."
72 break
73 case LockTypeError:
74 ans = "Lock type error."
75 break
76 case ReleaseBeforeAcquire:
77 ans = "The lock being released has not been locked."
78 break
79 case OnlyDirectoriesCanCreateFiles:
80 ans = "Only directories can create files."
81 break
82 case TokenSeqError:
83 ans = "Client send a error TokenSeq."
84 break
85 case FileNameError:
86 ans = "The inserted file has disallowed characters."
87 break
88 default:
89
90 }
91 return ans
92}
93
94type FileSystemNode struct {
95 // 在此文件下创建新文件时要传入的参数

Callers 11

FastGetMethod · 0.45
OpenMethod · 0.45
CreateMethod · 0.45
DeleteMethod · 0.45
AcquireMethod · 0.45
ReleaseMethod · 0.45
CheckTokenMethod · 0.45
acceptFromRaftDaemonMethod · 0.45
CompareAndSwapMethod · 0.45
GetMethod · 0.45
PutAppendMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected