github.com/GeniusesGroup/libgo@v0.0.0-20220929090155-5ff932cb408e/connection/errors.go (about) 1 /* For license and copyright information please see LEGAL file in repository */ 2 3 package connection 4 5 import ( 6 er "../error" 7 "../protocol" 8 ) 9 10 const domainEnglish = "connection" 11 const domainPersian = "ارتباط" 12 13 // Errors 14 var ( 15 ErrNoConnection = er.New("urn:giti:connection.protocol:error:no-connection").SetDetail(protocol.LanguageEnglish, domainEnglish, "No Connection", 16 "No connection exist to complete request due to temporary or long term problem", 17 "", 18 ""). 19 SetDetail(protocol.LanguagePersian, domainPersian, "ارتباط قطع", 20 "ارتباطی جهت انجام رخواست مورد نظر بدلیل وجود مشکل موقت یا دایم وجود ندارد", 21 "", 22 "").Save() 23 24 ErrSendRequest = er.New("urn:giti:connection.protocol:error:send-request").SetDetail(protocol.LanguageEnglish, domainEnglish, "Send Request", 25 "Send request encounter problem due to temporary or long term problem!", 26 "", 27 "").Save() 28 29 ErrProtocolHandler = er.New("urn:giti:connection.protocol:error:protocol-handler").SetDetail(protocol.LanguageEnglish, domainEnglish, "Protocol Handler", 30 "Protocol handler not exist to complete the request", 31 "", 32 "").Save() 33 34 ErrGuestNotAllow = er.New("urn:giti:connection.protocol:error:guest-not-allow").SetDetail(protocol.LanguageEnglish, domainEnglish, "Guest Not Allow", 35 "Guest users don't allow to make new connection", 36 "", 37 "").Save() 38 39 ErrGuestMaxReached = er.New("urn:giti:connection.protocol:error:guest-max-reached").SetDetail(protocol.LanguageEnglish, domainEnglish, "Guest Max Reached", 40 "Server not have enough resource to make new guest connection, try few minutes later or try other server", 41 "", 42 "").Save() 43 )