//========================================================== // General Purpose Library //========================================================== // contx.h // // Array-based container exceptions // // Copyright 1995-96 Scott Robert Ladd. All rights reserved //========================================================== #ifndef COYOTE_CONTX_H #define COYOTE_CONTX_H #include "Diagnose.h" using namespace Coyote; namespace Coyote { enum ContainerError { CX_NULL, CX_NULLARRAY, CX_NOTREADY, CX_OVERFLOW, CX_UNDERFLOW }; class ContainerEx : public ExceptionBase { public: ContainerEx ( ContainerError err ) { Error = err; } ContainerError WhatsWrong() { return Error; } virtual void Explain ( DiagOutput & diag ); private: ContainerError Error; }; } // end namespace Coyote #endif