AFSETERRORHANDLER(3)

✨ AFSETERRORHANDLER ✨

okay bestie, we're in section 3 of the manual (that's the library-functions girlies πŸ’…) and this one is called afSetErrorHandler β€” say it with me, it's giving "let me handle my own problems actually" 🫢


🌸 NAME 🌸

afSetErrorHandler β€” install a custom error handling routine

πŸŽ€ SYNOPSIS πŸŽ€

#include <audiofile.h>

AFerrfunc afSetErrorHandler (AFerrfunc errorFunction);

πŸ¦‹ PARAMETERS πŸ¦‹

  • errorFunction β€” a pointer to an error handling function. that's it, that's the whole vibe, just hand her a function and she'll take it from there πŸ’–

✨ DESCRIPTION ✨

so like, afSetErrorHandler lets you β€” yes you, main character β€” install your own error handling function, and it overrides the default function. lowkey iconic behavior. the default one is fine and all but sometimes you want your errors to come with your own flair, y'know? and this is how you do it. no cap. πŸ”₯

πŸ’œ RETURN VALUE πŸ’œ

what you get back from afSetErrorHandler is a pointer to the previous error handling function. so if you ever wanna go back to how things were before you showed up and changed everything? she remembers. she always remembers. 😭🫢

πŸ‘‘ AUTHOR πŸ‘‘

Michael Pruett <michael@68k.org>


and that's a wrap, bestie!! this page came to you from Audio File Library 0.3.6, dated 03/06/2013 β€” fr fr, the receipts are right there, periodt βœ¨πŸ’–πŸŒΈ go forth and handle your errors, you've got this πŸ§šπŸ’œ

πŸ“¦ where this page comes from