๐พ Archived View for source.community โบ ckaznocha โบ gemini โบ blob โบ main โบ errors.go captured on 2023-01-29 at 03:18:11. Gemini links have been rewritten to link to archived content
โฌ ๏ธ Previous capture (2022-01-08)
โก๏ธ Next capture (2024-02-05)
-=-=-=-=-=-=-
. ,-. ,-. . . ,-. ,-. ,-. ,-. ,-. ,-,-. ,-,-. . . ,-. . |- . . `-. | | | | | | |-' | | | | | | | | | | | | | | | | | `-' `-' `-^ ' `-' `-' :: `-' `-' ' ' ' ' ' ' `-^ ' ' ' `' `-| /| `-'
git clone https://source.community/ckaznocha/gemini.git
View raw contents of /errors.go (main)
โโโโโฎ 1โ package gemini 2โ 3โ import ( 4โ "errors" 5โ "fmt" 6โ ) 7โ 8โ // Sentinel errors. 9โ var ( 10โ // Listener sentinels. 11โ ErrClosingListeners = errors.New("error closing listeners") 12โ ErrClosingListener = errors.New("error closing listener") 13โ ErrOpeningConnection = errors.New("error opening connection") 14โ 15โ // Request sentinels. 16โ ErrMaxRequestLengthExceeded = fmt.Errorf( 17โ "the request length exceeded the max size of %d bytes", 18โ maxRequestLength, 19โ ) 20โ ErrRequestRead = errors.New("unable to read request") 21โ 22โ // Server sentinels. 23โ ErrServerShutdown = errors.New("server shutdown") 24โ ErrStartingServer = errors.New("unable to start server") 25โ ErrServing = errors.New("unable to serve requests") 26โ ErrIO = errors.New("IO error") 27โ 28โ // URL sentinels. 29โ ErrMalformedURI = errors.New("malformed URI") 30โ ) โโโโโฏ
ยท ยท ยท
ยฉ 2023 source.community