From 73d3c68e9f50d2ff1eab57545f0606e99bada2cd Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Sun, 2 Mar 2014 10:51:12 -0500 Subject: [PATCH] error: Update design To make sure all the info is up to date. Signed-off-by: Anna Schumaker --- DESIGN | 12 ++++++------ include/error.h | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/DESIGN b/DESIGN index 8dc19bf6..492d78c1 100644 --- a/DESIGN +++ b/DESIGN @@ -71,15 +71,15 @@ Install: Errors: (include/error.h This file contains an enum defining error codes used throughout the - codebase. + codebase. Errors will be reported using "throw" and "catch". Error Codes: enum error_t { - EAUDIO = 1, /* Audio error */ - EEXIST, /* Requested object does not exist */ - EINVAL, /* Invalid operation requested */ - EIO, /* I/O error */ - ENOTRACK, + E_AUDIO = 1, /* Audio error */ + E_EXIST, /* Requested object does not exist */ + E_INVAL, /* Invalid operation requested */ + E_IO, /* I/O error */ + E_NOTRACK, /* Track ID not found */ }; diff --git a/include/error.h b/include/error.h index f24e2812..a63e29bd 100644 --- a/include/error.h +++ b/include/error.h @@ -6,10 +6,10 @@ enum o_error { E_AUDIO = 1, /* Audio error */ - E_EXIST, /* Requested object does not exist */ - E_INVAL, /* Invalid operation requested */ + E_EXIST, /* Requested object does not exist */ + E_INVAL, /* Invalid operation requested */ E_IO, /* I/O error */ - E_NOTRACK, + E_NOTRACK, /* Track ID not found */ }; #endif /* OCARINA_ERROR_H */