java.io.OptionalDataException.setStackTrace()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(3.5k)|赞(0)|评价(0)|浏览(136)

本文整理了Java中java.io.OptionalDataException.setStackTrace()方法的一些代码示例,展示了OptionalDataException.setStackTrace()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。OptionalDataException.setStackTrace()方法的具体详情如下:
包路径:java.io.OptionalDataException
类名称:OptionalDataException
方法名:setStackTrace

OptionalDataException.setStackTrace介绍

暂无

代码示例

代码示例来源:origin: wildfly/wildfly

static OptionalDataException createOptionalDataException(final boolean eof) {
  final OptionalDataException optionalDataException = createOptionalDataException();
  final StackTraceElement[] stackTrace = new Throwable().getStackTrace();
  final StackTraceElement[] copyStackTrace = new StackTraceElement[stackTrace.length - 1];
  System.arraycopy(stackTrace, 1, copyStackTrace, 0, copyStackTrace.length);
  optionalDataException.setStackTrace(copyStackTrace);
  optionalDataException.eof = eof;
  return optionalDataException;
}

代码示例来源:origin: org.jboss.marshalling/jboss-marshalling-osgi

static OptionalDataException createOptionalDataException(final boolean eof) {
  final OptionalDataException optionalDataException = createOptionalDataException();
  final StackTraceElement[] stackTrace = new Throwable().getStackTrace();
  final StackTraceElement[] copyStackTrace = new StackTraceElement[stackTrace.length - 1];
  System.arraycopy(stackTrace, 1, copyStackTrace, 0, copyStackTrace.length);
  optionalDataException.setStackTrace(copyStackTrace);
  optionalDataException.eof = eof;
  return optionalDataException;
}

代码示例来源:origin: jboss-remoting/jboss-marshalling

static OptionalDataException createOptionalDataException(final boolean eof) {
  final OptionalDataException optionalDataException = createOptionalDataException();
  final StackTraceElement[] stackTrace = new Throwable().getStackTrace();
  final StackTraceElement[] copyStackTrace = new StackTraceElement[stackTrace.length - 1];
  System.arraycopy(stackTrace, 1, copyStackTrace, 0, copyStackTrace.length);
  optionalDataException.setStackTrace(copyStackTrace);
  optionalDataException.eof = eof;
  return optionalDataException;
}

代码示例来源:origin: org.jboss.marshalling/jboss-marshalling

static OptionalDataException createOptionalDataException(final boolean eof) {
  final OptionalDataException optionalDataException = createOptionalDataException();
  final StackTraceElement[] stackTrace = new Throwable().getStackTrace();
  final StackTraceElement[] copyStackTrace = new StackTraceElement[stackTrace.length - 1];
  System.arraycopy(stackTrace, 1, copyStackTrace, 0, copyStackTrace.length);
  optionalDataException.setStackTrace(copyStackTrace);
  optionalDataException.eof = eof;
  return optionalDataException;
}

代码示例来源:origin: org.jboss.eap/wildfly-client-all

static OptionalDataException createOptionalDataException(final boolean eof) {
  final OptionalDataException optionalDataException = createOptionalDataException();
  final StackTraceElement[] stackTrace = new Throwable().getStackTrace();
  final StackTraceElement[] copyStackTrace = new StackTraceElement[stackTrace.length - 1];
  System.arraycopy(stackTrace, 1, copyStackTrace, 0, copyStackTrace.length);
  optionalDataException.setStackTrace(copyStackTrace);
  optionalDataException.eof = eof;
  return optionalDataException;
}

代码示例来源:origin: jboss-remoting/jboss-marshalling

static OptionalDataException createOptionalDataException(final boolean eof) {
  final OptionalDataException optionalDataException = createOptionalDataException();
  final StackTraceElement[] stackTrace = new Throwable().getStackTrace();
  final StackTraceElement[] copyStackTrace = new StackTraceElement[stackTrace.length - 1];
  System.arraycopy(stackTrace, 1, copyStackTrace, 0, copyStackTrace.length);
  optionalDataException.setStackTrace(copyStackTrace);
  optionalDataException.eof = eof;
  return optionalDataException;
}

相关文章