github.com/geniusesgroup/libgo@v0.0.0-20220713101832-828057a9d3d4/syllab/errors.go (about) 1 /* For license and copyright information please see LEGAL file in repository */ 2 3 package syllab 4 5 import ( 6 errorr "../error" 7 lang "../language" 8 ) 9 10 // Declare Errors Details 11 var ( 12 ErrSyllabNeededTypeNotExist = errorr.New().SetDetail(lang.EnglishLanguage, "Syllab - Needed Type Not Exist", 13 "Custom struct type exist in upper struct type that generator can't access it to know its fields").Save() 14 15 ErrSyllabFieldType = errorr.New().SetDetail(lang.EnglishLanguage, "Syllab - Field Type", 16 "Requested type may include function, interface, int, uint, ... field type that can't encode||decode").Save() 17 18 ErrSyllabArrayLen = errorr.New().SetDetail(lang.EnglishLanguage, "Syllab - Array Len", 19 "Length of array larger than 32 bit space that syllab can encode||decode").Save() 20 21 ErrSyllabDecodeSmallSlice = errorr.New().SetDetail(lang.EnglishLanguage, "Syllab - Decode Small Slice", 22 "Given slice smaller than expected to decode data from it").Save() 23 24 ErrSyllabDecodeHeapOverFlow = errorr.New().SetDetail(lang.EnglishLanguage, "Syllab - Decode Heap OverFlow", 25 "Encoded syllab want to access to out of slice.").Save() 26 )