Mercurial > projects > mde
diff mde/input/input.d @ 7:b544c3a7c9ca
Some changes to exceptions and a few more debug commands.
committer: Diggory Hardy <diggory.hardy@gmail.com>
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Wed, 16 Jan 2008 12:48:07 +0000 |
parents | 9a990644948c |
children | f63f4f41a2dc |
line wrap: on
line diff
--- a/mde/input/input.d Thu Jan 10 18:33:24 2008 +0000 +++ b/mde/input/input.d Wed Jan 16 12:48:07 2008 +0000 @@ -205,7 +205,7 @@ } uint next () { // Get the next element. Throws an exception if there isn't another. if (p >= _q.length) - throw new InputException ("Input: Invalid configuration: incomplete config stack"); + throw new InputClassException ("Input: Invalid configuration: incomplete config stack"); uint ret = _q[p]; ++p; return ret; @@ -238,19 +238,19 @@ { ES_B_Func* func = (s.next() in es_b_fcts); if (func != null) (*func)(b,s); - else throw new InputException ("Input: Invalid configuration: bad event function code"); + else throw new InputClassException ("Input: Invalid configuration: bad event function code"); } void aEventOut (short x, readOutQueue s) { ES_A_Func* func = (s.next() in es_a_fcts); if (func != null) (*func)(x,s); - else throw new InputException ("Input: Invalid configuration: bad event function code"); + else throw new InputClassException ("Input: Invalid configuration: bad event function code"); } void mEventOut (short x, short y, readOutQueue s) { ES_M_Func* func = (s.next() in es_m_fcts); if (func != null) (*func)(x,y,s); - else throw new InputException ("Input: Invalid configuration: bad event function code"); + else throw new InputClassException ("Input: Invalid configuration: bad event function code"); } // The remaining functions are the stream functions, for adjusting and outputting an event.