ReqErr(3I)
π ReqErr β handle request errors π
okay bestie, so this is a page from the InterViews Reference Manual, and it's all about ReqErr, the little class that catches your oopsies before they take your whole process down. sit with me, it's gonna be fun. π
β¨ NAME β¨
ReqErr β handle request errors π«Ά
πΈ SYNOPSIS πΈ
#include <InterViews/reqerr.h>
π DESCRIPTION π
so like, sometimes you send a request to the window server and it justβ¦ doesn't go. π not your fault, it's just life. the classic example: a window gets destroyed while it's being repositioned interactively, and then the request to place that window in its new position fails. gone. poof. π
normally? errors like this make the process terminate. like, the whole thing. no cap. π
that's where the ReqErr class comes in β it's the main character that lets you handle errors within your application instead of just dying about it. the base class defines the attributes associated with each error, and here's the lineup:
- a message string describing the error π
- an integer request code that specifies the kind of call that generated the error π’
- an id object that was the target of the request π―
and when an error occurs, the attributes of the current request handler get assigned, and then the handler's Error operation is called. periodt. β¨
π PUBLIC OPERATIONS π
ReqErr* Install()β use this error handler for subsequent errors, and it returns the previous error handler. cute little switcheroo. π«virtual void Error()β handle a detected error. the default handler is a nop (so if you don't override it, it literally does nothing, bestie, it's giving silent treatment π§).
π SEE ALSO π
Interactor(3I)
and that's the whole vibe, fr fr π this was the InterViews manual, dated 15 June 1987, and the page you just read is ReqErr(3I). go forth and handle your errors, queen πβ¨
π¦ where this page comes from
- debian bookworm: ivtools-dev 2.0.11d.a1-1+b4
- debian trixie: ivtools-dev 2.0.11d.a1-3+b4
- ubuntu jammy: ivtools-dev 2.0.11d.a1-1build1
- ubuntu noble: ivtools-dev 2.0.11d.a1-3build1
- ubuntu questing: ivtools-dev 2.0.11d.a1-3build7
- ubuntu resolute: ivtools-dev 2.0.11d.a1-3build9
- ubuntu stonking: ivtools-dev 2.1.1+git.2025.07.26.a1-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms