Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrorByID = map[string]*ErrorLanguage{
"HeaderNotMatchFieldName": {CHS: "表头与字段不匹配"},
"HeaderFieldNotDefined": {CHS: "表头字段未定义"},
"DuplicateHeaderField": {CHS: "表头字段重复"},
"DuplicateKVField": {CHS: "键值表字段重复"},
"UnknownFieldType": {CHS: "未知字段类型"},
"DuplicateTypeFieldName": {CHS: "类型表字段重复"},
"EnumValueEmpty": {CHS: "枚举值空"},
"DuplicateEnumValue": {CHS: "枚举值重复"},
"UnknownEnumValue": {CHS: "未知的枚举值"},
"InvalidTypeTable": {CHS: "非法的类型表"},
"HeaderTypeNotFound": {CHS: "表头类型找不到"},
"DuplicateValueInMakingIndex": {CHS: "创建索引时发现重复值"},
"UnknownInputFileExtension": {CHS: "未知的输入文件扩展名"},
"DataMissMatchTypeDefine": {CHS: "数据与定义类型不匹配"},
"ArrayMultiColumnDefineNotMatch": {CHS: "数组类型多列跨表定义不一致"},
"InvalidFieldName": {CHS: "非法字段名"},
"UnknownTypeKind": {CHS: "非法的类型种类"},
}
)
View Source
var Log = golog.New("tabtoy2")
Functions ¶
This section is empty.
Types ¶
type ErrorLanguage ¶
type ErrorLanguage struct {
CHS string
}
type TableError ¶
type TableError struct { ID string // contains filtered or unexported fields }
func ReportError ¶
func ReportError(id string, context ...interface{}) *TableError
func (*TableError) Error ¶
func (self *TableError) Error() string
Click to show internal directories.
Click to hide internal directories.