/* SetException.C Implementation of exception for use with Sets Mitch Edelman Created: 31 August 2000 Current: 2 September 2000 */ #include "SetException.H" #include "string.H" SetException::SetException() { } SetException::SetException(const string & errorMsg) { _msg = errorMsg; } SetException::SetException(const SetException & ce) { _msg = ce.errorMsg(); } SetException::~SetException() { } const SetException & SetException::operator=(const SetException & ce) { if (this == &ce) return *this; // don't assign to itself _msg = ce.errorMsg(); return *this; } const string & SetException::errorMsg() const { return _msg; }