EC
🐹

Go Standard Library Errors

Go 1.22+35 codes

Sentinel errors from os, io, net, http, context, sql and runtime panics

Showing 35 of 35 errors
CodeMessage
os.ErrNotExistno such file or directory→
os.ErrPermissionpermission denied→
os.ErrExistfile already exists→
os.ErrClosedfile already closed→
os.ErrDeadlineExceededi/o timeout→
io.EOFEOF→
io.ErrUnexpectedEOFunexpected EOF→
io.ErrClosedPipeio: read/write on closed pipe→
io.ErrShortBuffershort buffer→
io.ErrShortWriteshort write→
io.ErrNoProgressmultiple Read calls return no data or error→
net.ErrCloseduse of closed network connection→
http.ErrServerClosedhttp: Server closed→
http.ErrNoCookiehttp: named cookie not present→
http.ErrNoLocationhttp: no Location header in response→
http.ErrBodyReadAfterClosehttp: invalid Read on closed Body→
http.ErrHandlerTimeouthttp: Handler timeout→
http.ErrLineTooLongheader line too long→
http.ErrAbortHandlernet/http: abort Handler→
http.ErrContentLengthhttp: wrote more than the declared Content-Length→
context.Canceledcontext canceled→
context.DeadlineExceededcontext deadline exceeded→
sql.ErrNoRowssql: no rows in result set→
sql.ErrConnDonesql: connection is already closed→
sql.ErrTxDonesql: transaction has already been committed or rolled back→
json.SyntaxErrorinvalid character … looking for …→
json.UnmarshalTypeErrorcannot unmarshal … into Go value of type …→
json.InvalidUnmarshalErrorjson: Unmarshal(non-pointer …)β†’
bufio.ErrBufferFullbufio: buffer full→
bufio.ErrTooLongbufio.Scanner: token too long→
strconv.ErrRangevalue out of range→
strconv.ErrSyntaxinvalid syntax→
runtime panic (nil pointer)runtime error: invalid memory address or nil pointer dereference→
runtime panic (index out of range)runtime error: index out of range [N] with length M→
runtime panic (slice bounds out of range)runtime error: slice bounds out of range [low:high]β†’