WinStd
Windows Win32 API using Standard C++
All Classes Functions Variables Typedefs Enumerations Enumerator Modules Pages
winstd::sec_runtime_error Class Reference

Security runtime error. More...

#include <WinStd/Sec.h>

Inheritance diagram for winstd::sec_runtime_error:
winstd::num_runtime_error< SECURITY_STATUS >

Public Member Functions

 sec_runtime_error (error_type num, const std::string &msg)
 Constructs an exception.
 
 sec_runtime_error (error_type num, const char *msg=nullptr)
 Constructs an exception.
 
 sec_runtime_error (const sec_runtime_error &other)
 Copies an exception.
 
- Public Member Functions inherited from winstd::num_runtime_error< SECURITY_STATUS >
 num_runtime_error (error_type num, const std::string &msg)
 Constructs an exception.
 
 num_runtime_error (error_type num, const char *msg=nullptr)
 Constructs an exception.
 
error_type number () const
 Returns the error number.
 

Additional Inherited Members

- Public Types inherited from winstd::num_runtime_error< SECURITY_STATUS >
typedef SECURITY_STATUS error_type
 Error number type.
 
- Protected Attributes inherited from winstd::num_runtime_error< SECURITY_STATUS >
error_type m_num
 Numeric error code.
 

Detailed Description

Security runtime error.

Note
Must be defined as derived class from num_runtime_error<> to allow correct type info for dynamic typecasting and prevent folding with other derivates of num_runtime_error<>.

Constructor & Destructor Documentation

◆ sec_runtime_error() [1/3]

winstd::sec_runtime_error::sec_runtime_error ( error_type num,
const std::string & msg )
inline

Constructs an exception.

Parameters
[in]numSecurity provider error code
[in]msgError message

◆ sec_runtime_error() [2/3]

winstd::sec_runtime_error::sec_runtime_error ( error_type num,
const char * msg = nullptr )
inline

Constructs an exception.

Parameters
[in]numSecurity provider error code
[in]msgError message

◆ sec_runtime_error() [3/3]

winstd::sec_runtime_error::sec_runtime_error ( const sec_runtime_error & other)
inline

Copies an exception.

Parameters
[in]otherException to copy from

The documentation for this class was generated from the following file: