mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 14:53:44 +08:00
1 parent
5e0da3da28
commit
ee6c9f6a16
82 files changed
+4316
-4310
No files matched your search
@@ -16,9 +16,6 @@ package ofdgo
|
||||
|
||||
import "errors"
|
||||
|
||||
// EditReason 编辑操作受限的原因,不依赖错误描述的语言或文案
|
||||
type EditReason string
|
||||
|
||||
const (
|
||||
// EditUnsupportedObject 对象包含尚不支持编辑的特性
|
||||
EditUnsupportedObject EditReason = "unsupportedObject"
|
||||
@@ -38,6 +35,9 @@ const (
|
||||
EditInvalidObject EditReason = "invalidObject"
|
||||
)
|
||||
|
||||
// EditReason 编辑操作受限的原因,不依赖错误描述的语言或文案
|
||||
type EditReason string
|
||||
|
||||
// EditError 编辑受限原因及原始错误,可通过errors.As取得Code和更具体的诊断
|
||||
type EditError struct {
|
||||
Code EditReason
|
||||
|
||||
Reference in new issue
Block a user