github.com/GeniusesGroup/libgo@v0.0.0-20220929090155-5ff932cb408e/compress/errors.go (about) 1 /* For license and copyright information please see LEGAL file in repository */ 2 3 package compress 4 5 import ( 6 er "../error" 7 "../mediatype" 8 "../protocol" 9 ) 10 11 const domainEnglish = "Compress" 12 const domainPersian = "فشرده سازی" 13 14 // Errors 15 var ( 16 ErrNotFound = er.New(mediatype.New("domain/compress.protocol.error; name=not-found").SetDetail(protocol.LanguageEnglish, domainEnglish, 17 "Not Found", 18 "Can't find requested compression||decompression algorithm", 19 "", 20 "", 21 nil)) 22 23 ErrSourceNotChangeable = er.New(mediatype.New("domain/compress.protocol.error; name=source-not-changeable").SetDetail(protocol.LanguageEnglish, domainEnglish, 24 "Source not Changeable", 25 "Can't read from other source than source given in compression||decompression creation", 26 "", 27 "", 28 nil)) 29 )