- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- de.ibapl.jnhw.common.exception.NativeErrorException
-
- All Implemented Interfaces:
Serializable
public class NativeErrorException extends Exception
This exceptions is thrown if the jni native code detects an error. The error number POSIX|ISO C call errno and Windows API call GetLastError() will be stored in errno. The value of errno is valid only if a called function sets the errno and flags the occurence of an error. Once the call returns to the JVM the value of errno is uncertain, so this must be handled immediately after the call to that function.- Author:
- aploese
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description interrnostatic IntFunction<String>ERRNO_SYMBOL_PROVIDER
-
Constructor Summary
Constructors Constructor Description NativeErrorException(int errno)NativeErrorException(int errno, String msg)
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
ERRNO_SYMBOL_PROVIDER
public static IntFunction<String> ERRNO_SYMBOL_PROVIDER
-
errno
public final int errno
-
-
Constructor Detail
-
NativeErrorException
public NativeErrorException(int errno)
-
NativeErrorException
public NativeErrorException(int errno, String msg)
-
-