Skip navigation links
JNA API 4.5.2

Class Win32Exception

  • All Implemented Interfaces:

    public class Win32Exception
    extends LastErrorException
    Win32 exception.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      (package private) void addSuppressedReflected(java.lang.Throwable exception) 
      WinNT.HRESULT getHR()
      Returns the error code of the error.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Win32Exception

        public Win32Exception(int code)
        New Win32 exception from an error code, usually obtained from GetLastError.
        code - Error code.
      • Win32Exception

        public Win32Exception(WinNT.HRESULT hr)
        New Win32 exception from HRESULT.
        hr - HRESULT
      • Win32Exception

        protected Win32Exception(int code,
                                 WinNT.HRESULT hr)
      • Win32Exception

        protected Win32Exception(int code,
                                 WinNT.HRESULT hr,
                                 java.lang.String msg)
    • Method Detail

      • getHR

        public WinNT.HRESULT getHR()
        Returns the error code of the error.
        HRESULT value
      • addSuppressedReflected

        void addSuppressedReflected(java.lang.Throwable exception)
JNA API 4.5.2

Copyright © 2007-2017 Timothy Wall. All Rights Reserved.