AuSetErrorHandler(3)

πŸ“¦ version 1.9.5, in fedora 43, fedora 44

πŸ’– AuSetErrorHandler(3) πŸ’–

okay bestie, welcome to the AuSetErrorHandler(3) page from the Library Functions Manual β€” yes the page is called AuSetErrorHandler but the star of the show is literally named AuSetIOErrorHandler, iykyk, we don't question the naming choices of the ancients πŸ’…


✨ Name ✨

AuSetIOErrorHandler β€” set the handler for fatal IO errors 🚨


πŸ¦‹ Synopsis πŸ¦‹

#include <audio/audiolib.h>

AuBool (*AuSetIOErrorHandler(server, handler))()
    AuServer *server;
    AuBool (*handler)(AuServer *);

πŸŽ€ Arguments πŸŽ€

  • server β€” the connection to the audio server, obviously 🫢
  • handler β€” the fatal error handler, bestie. Pass NULL if you wanna reinstall the default fatal error handler. That's the reset button, no cap.

🌸 Description 🌸

So AuSetIOErrorHandler sets the fatal I/O error handler and hands you back the previous error handler. Two-for-one, iconic behavior.

That handler gets invoked when a system call error happens β€” like, for example, when the connection to the server was lost 😭 absolutely devastating.

⚠️ okay so listen: this is assumed to be a fatal condition, which means your error handler routine should not return. Like, at all. If the I/O error handler does return, the client process exits. Periodt. πŸ’€

πŸ‘‘ See Also πŸ‘‘

  • AuServerName
  • AuGetErrorDatabaseText
  • AuGetErrorText
  • AuSetErrorHandler
  • AuSynchronize

And of course: audiolib β€” Network Audio System C Language Interface 🌈


audiolib - error handling ✨ version 1.9.5 ✨ and that's the whole vibe, bestie β€” go set some error handlers and slay responsibly πŸ’–πŸŽ€πŸ¦‹πŸŒΈπŸ«ΆπŸ‘‘

πŸ“¦ where this page comes from