Class ESSPIError
Unit
Declaration
type ESSPIError = class(Exception)
Description
Specific exception class. Could be created on WinAPI error, SChannel error or general internal error.
WinAPI errors are used when a SChannel function returns result code via
GetLastError
. Non-zeroWinAPIErr
field is set then.SChannel errors are used when a SChannel function returns status code of type
SECURITY_STATUS
OR it succeedes but something went wrong. Non-zeroSecStatus
field is set then.General errors are used in other cases, like incorrect arguments.
Hierarchy
- TObject
- Exception
- ESSPIError
Overview
Fields
![]() |
WinAPIErr: DWORD; |
![]() |
SecStatus: SECURITY_STATUS; |
Methods
![]() |
constructor CreateWinAPI(const Action, Func: string; Err: DWORD); |
![]() |
constructor CreateSecStatus(const Action, Func: string; Status: SECURITY_STATUS; const Info: string = ''); overload; |
Description
Fields
![]() |
WinAPIErr: DWORD; |
If not zero, reason of exception is WinAPI and this field contains code of an error returned by GetLastError |
![]() |
SecStatus: SECURITY_STATUS; |
If not zero, reason of exception is SChannel and this field contains security status returned by last function call |
Methods
![]() |
constructor CreateSecStatus(const Action, Func: string; Status: SECURITY_STATUS; const Info: string = ''); overload; |
Create SChannel exception based on status and, optionally, on custom info message If empty, info message is generated based on Status Parameters
|
Generated by PasDoc 0.16.0.