com.github.bloodshura.ignitium.ntv.ErrorCodeNativeException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ignitium-native Show documentation
Show all versions of ignitium-native Show documentation
An API for working with native system APIs, with a higher-level interface.
The newest version!
package com.github.bloodshura.ignitium.ntv;
import com.github.bloodshura.ignitium.math.BaseConverter;
import com.sun.jna.Native;
public class ErrorCodeNativeException extends NativeException {
public ErrorCodeNativeException(CharSequence message) {
this(message, Native.getLastError());
}
public ErrorCodeNativeException(CharSequence message, int errorCode) {
super(message + "; error code: 0x" + BaseConverter.encode(errorCode, BaseConverter.HEXADECIMAL));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy