ocarina/include/error.h
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

16 lines
299 B
C

/*
* Copyright 2013 (c) Anna Schumaker.
*/
#ifndef OCARINA_ERROR_H
#define OCARINA_ERROR_H
enum error_t {
EAUDIO = 1, /* Audio error */
EEXIST, /* Requested object does not exist */
EINVAL, /* Invalid operation requested */
EIO, /* I/O error */
ENOTRACK,
};
#endif /* OCARINA_ERROR_H */