本文整理了Java中java.lang.UnsatisfiedLinkError.getCause()
方法的一些代码示例,展示了UnsatisfiedLinkError.getCause()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。UnsatisfiedLinkError.getCause()
方法的具体详情如下:
包路径:java.lang.UnsatisfiedLinkError
类名称:UnsatisfiedLinkError
方法名:getCause
暂无
代码示例来源:origin: bytedeco/javacpp
if (loadError != null && e.getCause() == null) {
e.initCause(loadError);
代码示例来源:origin: bytedeco/javacpp
if (preloadError != null && e.getCause() == null) {
e.initCause(preloadError);
代码示例来源:origin: org.bidib.jbidib/jbidibc-spsw
@Override
public List<String> getPortIdentifiers() {
List<String> portIdentifiers = new ArrayList<>();
try {
// get the comm port identifiers
portIdentifiers.addAll(serialPortFactory.getPortNames(true));
}
catch (UnsatisfiedLinkError ule) {
LOGGER.warn("Get comm port identifiers failed.", ule);
throw new InvalidLibraryException(ule.getMessage(), ule.getCause());
}
catch (Error error) {
LOGGER.warn("Get comm port identifiers failed.", error);
throw new RuntimeException(error.getMessage(), error.getCause());
}
return portIdentifiers;
}
代码示例来源:origin: org.bidib.jbidib/jbidibc-scm
throw new InvalidLibraryException(ule.getMessage(), ule.getCause());
代码示例来源:origin: org.bidib.jbidib/jbidibc-scm
throw new InvalidLibraryException(ule.getMessage(), ule.getCause());
代码示例来源:origin: com.googlecode.javacpp/javacpp
} catch (UnsatisfiedLinkError e) {
loadedLibraries.remove(libnameversion);
if (loadError != null && e.getCause() == null) {
e.initCause(loadError);
代码示例来源:origin: org.bidib.jbidib/jbidibc-rxtx
@Override
public List<String> getPortIdentifiers() {
List<String> portIdentifiers = new ArrayList<String>();
try {
// get the comm port identifiers
Enumeration<?> e = CommPortIdentifier.getPortIdentifiers();
while (e.hasMoreElements()) {
CommPortIdentifier id = (CommPortIdentifier) e.nextElement();
LOGGER.debug("Process current CommPortIdentifier, name: {}, portType: {}", id.getName(),
id.getPortType());
if (id.getPortType() == CommPortIdentifier.PORT_SERIAL) {
portIdentifiers.add(id.getName());
}
else {
LOGGER.debug("Skip port because no serial port, name: {}, portType: {}", id.getName(),
id.getPortType());
}
}
}
catch (UnsatisfiedLinkError ule) {
LOGGER.warn("Get comm port identifiers failed.", ule);
throw new InvalidLibraryException(ule.getMessage(), ule.getCause());
}
catch (Error error) {
LOGGER.warn("Get comm port identifiers failed.", error);
throw new RuntimeException(error.getMessage(), error.getCause());
}
return portIdentifiers;
}
代码示例来源:origin: org.bidib.jbidib/jbidibc-rxtx
throw new InvalidLibraryException(ule.getMessage(), ule.getCause());
代码示例来源:origin: com.bugvm/javacpp
if (loadError != null && e.getCause() == null) {
e.initCause(loadError);
代码示例来源:origin: com.googlecode.javacpp/javacpp
return loadLibrary(urls, library);
} catch (UnsatisfiedLinkError e) {
if (preloadError != null && e.getCause() == null) {
e.initCause(preloadError);
代码示例来源:origin: com.bugvm/javacpp
if (preloadError != null && e.getCause() == null) {
e.initCause(preloadError);
内容来源于网络,如有侵权,请联系作者删除!