Class WindowsCertificateException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
org.jetbrains.nativecerts.win32.WindowsCertificateException
- All Implemented Interfaces:
Serializable
A CryptoAPI call failed. Replaces JNA's
Win32Exception: carries the Win32 error code / HRESULT
(from GetLastError or from CERT_CHAIN_POLICY_STATUS.dwError) and the system message text for it.- See Also:
-
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
getErrorCode
public int getErrorCode()- Returns:
- Win32 error code or HRESULT, e.g.
Crypt32Ext.CERT_E_UNTRUSTEDROOT
-