VisError.h
资源名称:VisSDK.rar [点击查看]
上传用户:weixiumei
上传日期:2008-05-15
资源大小:1769k
文件大小:10k
源码类别:
人物传记/成功经验
开发平台:
Visual C++
- ////////////////////////////////////////////////////////////////////////////
- //
- // @doc INTERNAL EXTERNAL VISERROR
- //
- // @module VisError.h |
- //
- // This file defines error objects used for the exception handling
- // in MSVisSDK. The basic object, CVisError, is a base class that provides
- // some information about the exception (file name, function name, etc.)
- // CVisFileIOError and CVisMemoryError are derived from CVisError class.
- // They contain more specific information about the nature of the exception.
- //
- // <nl>
- //
- // @devnote:(INTERNAL)
- //
- // Due to a bug in VC++, the _LINE_ macro doesn't return the right
- // line number. This causes an exception object to be created with a
- // wrong line number. Once this bug is fixed, line number should be
- // reported correctly by all the error objects.
- //
- // FullMessage member function returns an error message with file name,
- // function name and the error message specific to a certain error object.
- // Each piece of this information can be obtained separately by using appropriate
- // member functions.
- //
- // Protected member function ComposeMessages takes a number (n) of strings
- // and concatenates them together into one message.
- //
- // @todo:(INTERNAL)
- // We should have macros to throw the common exceptions.
- //
- // We might want an exception for type mismatches.
- //
- // <nl>
- //
- // Copyright