The function setting the last chsvlib error code and its description.
- Template Parameters
-
CErrorInfoImpl | is a class implementing the description processing mechanism. There are two requirements for it:
- It must implement the IErrorInfo interface;
- It must implements the constructor of form CErrrorInfoImpl(OnErrorInfoFailture). This constructor should create default
CErrrorInfoImpl object when it's normal initialization fails. The parameter can be ignored by the constructor as it is used to separate its declaration from the default constructor.
- It must also implement the public default and copy constructors.
|
- Parameters
-
nError | specifies the chsvlib error code to be set. |
refErrorInfo | specifies an object of type CErrorInfoImpl implementing and holding an extra error description. |
- Warning
- The function must not be used together with SetLastChsvErrorWC(chsverror_t nChsvError), SetLastChsvErrorInfoWC(chsverror_t nChsvError, unsigned long nWin32Error, errno_t nCError), GetLastChsvErrorWin32() or GetLastChsvErrorC() as it results to an undefined behavior including memory corruptions.