java.io.IOException.getStackTrace()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(8.5k)|赞(0)|评价(0)|浏览(142)

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

IOException.getStackTrace介绍

暂无

代码示例

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

@Override
public final IOException abruptClose(final Object connection) {
  final IOException result = new IOException(String.format(abruptClose$str(), connection));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
@Override

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

@Override
public final IOException duplicateMessageIdException() {
  final IOException result = new IOException(String.format(duplicateMessageIdException$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String invalidWorker = "JBREM000211: Invalid XNIO worker; the worker must match the Remoting Endpoint worker";

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

@Override
public final IOException authenticationMessageTooLarge() {
  final IOException result = new IOException(String.format(authenticationMessageTooLarge$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String authenticationExtraResponse = "JBREM000303: Authentication protocol failed (extra response)";

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

@Override
public final IOException invalidMessage(final Object connection) {
  final IOException result = new IOException(String.format(invalidMessage$str(), connection));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String abruptClose = "JBREM000202: Abrupt close on %s";

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

@Override
public final IOException failedToConfigureSslContext(final Throwable cause) {
  final IOException result = new IOException(String.format(failedToConfigureSslContext$str()), cause);
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
@Override

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

@Override
public final IOException mechanismNameTooLong(final String mechName) {
  final IOException result = new IOException(String.format(mechanismNameTooLong$str(), mechName));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String authenticationMessageTooLarge = "JBREM000302: Authentication message too large";

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

@Override
public final IOException unexpectedEndOfCompressedInput() {
  final IOException result = new IOException(String.format(getLoggingLocale(), unexpectedEndOfCompressedInput$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String dataLargerThanContentLength = "UT005084: Attempted to write %s bytes however content-length has been set to %s";

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

@Override
public final IOException dataLargerThanContentLength(final long totalToWrite, final long responseContentLength) {
  final IOException result = new IOException(String.format(getLoggingLocale(), dataLargerThanContentLength$str(), totalToWrite, responseContentLength));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
@Override

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

@Override
public final IOException unknownAjpMessageType(final byte packetType) {
  final IOException result = new IOException(String.format(getLoggingLocale(), unknownAjpMessageType$str(), packetType));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String unknownMethod = "UT001035: Unknown method type for AJP request %s";

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

@Override
public final IOException wrongMagicNumber(final String expected, final String actual) {
  final IOException result = new IOException(String.format(getLoggingLocale(), wrongMagicNumber$str(), expected, actual));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String receivedInvalidChunk = "UT001038: Received invalid AJP chunk %s with response already complete";

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

@Override
public final IOException authorizationFailed() {
  final IOException result = new IOException(String.format(getLoggingLocale(), authorizationFailed0$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
@Override

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

@Override
public final IOException failedToDecode(final Throwable cause) {
  final IOException result = new IOException(String.format(getLoggingLocale(), failedToDecode$str()), cause);
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String invalidParameterSpec = "ELY08032: Invalid parameter specification type (expected %s, got %s)";

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

@Override
public final IOException readBytesMismatch(final int actual, final int expected) {
  final IOException result = new IOException(String.format(getLoggingLocale(), readBytesMismatch$str(), actual, expected));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String locationAndExternalPathAreIdentical = "ELY09525: location and externalPath initial attributes are the same. [location=%s, externalPath=%s]";

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

@Override
public final IOException connectionTerminatedReadingMultiPartData() {
  final IOException result = new IOException(String.format(getLoggingLocale(), connectionTerminatedReadingMultiPartData$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String failedToParsePath = "UT000037: Failed to parse path in HTTP request";

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

@Override
public final IOException wrongMagicNumber(final int number) {
  final IOException result = new IOException(String.format(getLoggingLocale(), wrongMagicNumber$str(), number));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String peerUnverified = "UT000067: No client cert was provided";

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

@Override
public final IOException renegotiationNotSupported() {
  final IOException result = new IOException(String.format(getLoggingLocale(), renegotiationNotSupported$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String notAValidRegularExpressionPattern = "UT000080: Not a valid regular expression pattern %s";

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

@Override
public final IOException awaitCalledFromIoThread() {
  final IOException result = new IOException(String.format(getLoggingLocale(), awaitCalledFromIoThread$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String recursiveCallToFlushingSenders = "UT000095: Recursive call to flushSenders()";

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

@Override
public final IOException cannotSendContinueResponse() {
  final IOException result = new IOException(String.format(getLoggingLocale(), cannotSendContinueResponse$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String parserDidNotMakeProgress = "UT000111: Parser did not make progress";

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

@Override
public final IOException invalidGZIPFooter() {
  final IOException result = new IOException(String.format(getLoggingLocale(), invalidGZIPFooter$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String responseTooLargeToBuffer = "UT000158: Response of length %s is too large to buffer";

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

@Override
public final IOException pingNotSupported() {
  final IOException result = new IOException(String.format(getLoggingLocale(), pingNotSupported$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String pingTimeout = "UT000183: Ping timed out";

相关文章