|
noexcept |
Constructs an exception object with the specified error code. .
[in] | nCode | is an error code, the exception object is to be associated with. |
The constructed exception is associated with the specified integral error code cast to the code_t
type, which is a template parameter of the ExceptionWithGenericCode class. The constructor is used when no caller-defined description is required for the error code. Therefore, both Exception::What() or Exception::what() "what" methods will return unspecified (but valid) C string (which is wide or multibyte respectively) saying that the description is not specified.