title: If a function returns a certain type, what are my options for returning errors?
body: <p>In my particular instance, I have a function to calculate a checksum, which returns a uint8_t. What would be options for showing the checksum verification has been unsuccessful? Normally I'd return -1 but obviously not an option. Return an int and cast it?</p>