java.lang.IllegalStateException.getStackTrace()方法的使用及代码示例

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

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

IllegalStateException.getStackTrace介绍

暂无

代码示例

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

@Override
public final IllegalStateException unexpectedSelectorOpenProblem(final Throwable cause) {
  final IllegalStateException result = new IllegalStateException(String.format(getLoggingLocale(), unexpectedSelectorOpenProblem$str()), cause);
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String notNioProvider = "XNIO007006: XNIO IO factory is from the wrong provider";

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

@Override
public final IllegalStateException injectionTargetNotFound() {
  final IllegalStateException result = new IllegalStateException(String.format(getLoggingLocale(), injectionTargetNotFound$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String invalidCharacterLength = "WFLYEE0060: %s of type java.lang.Character is not exactly one character long %s";

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

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

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

@Override
public final IllegalStateException requestChannelAlreadyProvided() {
  final IllegalStateException result = new IllegalStateException(String.format(getLoggingLocale(), requestChannelAlreadyProvided$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String handlerCannotBeNull = "UT000008: Handler cannot be null";

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

@Override
public final IllegalStateException connectNotSupported() {
  final IllegalStateException result = new IllegalStateException(String.format(getLoggingLocale(), connectNotSupported$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String notAConnectRequest = "UT000117: Request was not a CONNECT request";

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

@Override
public final IllegalStateException failedToSendAfterBeingSafe() {
  final IllegalStateException result = new IllegalStateException(String.format(getLoggingLocale(), failedToSendAfterBeingSafe$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String reasonPhraseToLargeForBuffer = "UT000130: HTTP reason phrase was too large for the buffer. Either provide a smaller message or a bigger buffer. Phrase: %s";

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

@Override
public final IllegalStateException authenticationPropertyNotSet(final String name, final String header) {
  final IllegalStateException result = new IllegalStateException(String.format(getLoggingLocale(), authenticationPropertyNotSet$str(), name, header));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String rengotiationFailed = "UT000135: renegotiation failed";

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

@Override
public final IllegalStateException rengotiationFailed() {
  final IllegalStateException result = new IllegalStateException(String.format(getLoggingLocale(), rengotiationFailed$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String userAgentCharsetMustHaveEvenNumberOfItems = "UT000136: User agent charset string must have an even number of items, in the form pattern,charset,pattern,charset,... Instead got: %s";

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

@Override
public final IllegalStateException exchangeAlreadyComplete() {
  final IllegalStateException result = new IllegalStateException(String.format(getLoggingLocale(), exchangeAlreadyComplete$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String notHandshakeRecord = "UT000140: Initial SSL/TLS data is not a handshake record";

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

@Override
public final IllegalStateException noEJBReceiverForNode(final String nodeName) {
  final IllegalStateException result = new IllegalStateException(String.format(getLoggingLocale(), noEJBReceiverForNode$str(), nodeName));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String noReceiverContextsInCluster = "EJBCLIENT000028: No EJB receiver contexts available in cluster %s";

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

@Override
public final IllegalStateException txNodeIsExcludedForInvocation(final String nodeName, final EJBClientInvocationContext invocationContext) {
  final IllegalStateException result = new IllegalStateException(String.format(getLoggingLocale(), txNodeIsExcludedForInvocation$str(), nodeName, invocationContext));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String nodeDoesNotAcceptLocator = "EJBCLIENT000050: Node of the current transaction %s does not accept %s";

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

@Override
public final IllegalStateException requiredNodeExcludedFromInvocation(final org.jboss.ejb.client.EJBLocator<?> locator, final String nodeName, final EJBClientInvocationContext invocationContext) {
  final IllegalStateException result = new IllegalStateException(String.format(getLoggingLocale(), requiredNodeExcludedFromInvocation$str(), locator, nodeName, invocationContext));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String unexpectedClusterNodeSelectorClassType = "EJBCLIENT000052: %s for cluster %s is not of type org.jboss.ejb.client.ClusterNodeSelector";

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

@Override
public final IllegalStateException selectorReturnedUnknownNode(final Object selector, final String nodeName) {
  final IllegalStateException result = new IllegalStateException(String.format(getLoggingLocale(), selectorReturnedUnknownNode$str(), selector, nodeName));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String nullSessionID = "EJBCLIENT000077: EJB receiver \"%s\" returned a null session ID for EJB \"%s\"";

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

@Override
public final IllegalStateException oneWayInvocation() {
  final IllegalStateException result = new IllegalStateException(String.format(getLoggingLocale(), oneWayInvocation$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String requestCancelled = "EJBCLIENT000402: Remote invocation request was cancelled";

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

@Override
public final IllegalStateException noRemoteTransportOnEJBContext() {
  final IllegalStateException result = new IllegalStateException(String.format(getLoggingLocale(), noRemoteTransportOnEJBContext$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String invalidViewTypeForInvocation = "EJBCLIENT000506: Server error (invalid view): %s";

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

@Override
public final IllegalStateException unreachableCode() {
  final IllegalStateException result = new IllegalStateException(String.format(getLoggingLocale(), unreachableCode$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String impossibleSwitchCase = "COM02001: Internal error: Impossible switch condition encountered: %s";

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

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

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

@Override
public final IllegalStateException serviceNotStarted() {
  final IllegalStateException result = new IllegalStateException(String.format(getLoggingLocale(), serviceNotStarted$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String undefinedVar = "WFLYJCA0058: %s is undefined";

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

@Override
public final IllegalStateException unknownAttribute(final String attributeName) {
  final IllegalStateException result = new IllegalStateException(String.format(getLoggingLocale(), unknownAttribute$str(), attributeName));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String unknownOperation = "WFLYJCA0067: Unknown operation %s";

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

@Override
public final IllegalStateException invalidElytronWorkManagerSetting() {
  final IllegalStateException result = new IllegalStateException(String.format(getLoggingLocale(), invalidElytronWorkManagerSetting$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String datasourceIsDisabled = "WFLYJCA0112: Datasource %s is disabled";

相关文章