ocarina/design/error.txt
Anna Schumaker ab8c15ecb7 file: Implement minor design changes
I had been returning success / failed boolean values for various
operations.  I think it's better to throw an exception in these
"exceptional" circumstances since error values can give more information
about why a function failed.

Signed-off-by: Anna Schumaker <schumaker.anna@gmail.com>
2014-04-06 19:56:57 -04:00

20 lines
365 B
Plaintext

== Files ==
ocarina/include/
error.h
== Depends ==
install
Errors: (include/error.h
This file contains an enum defining error codes used throughout the
codebase.
Error Codes:
enum error_t {
EAUDIO = 1, /* Audio error */
EEXIST, /* Requested object does not exist */
EINVAL, /* Invalid operation requested */
EIO, /* I/O error */
ENOTRACK,
};