Codota Logo
StartException.toString
Code IndexAdd Codota to your IDE (free)

How to use
toString
method
in
org.jboss.msc.service.StartException

Best Java code snippets using org.jboss.msc.service.StartException.toString (Showing top 10 results out of 315)

  • Common ways to obtain StartException
private void myMethod () {
StartException s =
  • Codota IconThrowable cause;new StartException(cause)
  • Codota IconServiceController controller;controller.getStartException()
  • Codota IconString str;Throwable cause;new StartException(str, cause)
  • Smart code suggestions by Codota
}
origin: org.jboss.as/jboss-as-controller

private static ModelNode getServiceFailureDescription(final StartException exception) {
  final ModelNode result = new ModelNode();
  if (exception != null) {
    StringBuilder sb = new StringBuilder(exception.toString());
    Throwable cause = exception.getCause();
    while (cause != null) {
      sb.append("\n    Caused by: ");
      sb.append(cause.toString());
      cause = cause.getCause();
    }
    result.set(sb.toString());
  }
  return result;
}
origin: org.wildfly/wildfly-controller

private static ModelNode getServiceFailureDescription(final StartException exception) {
  final ModelNode result = new ModelNode();
  if (exception != null) {
    StringBuilder sb = new StringBuilder(exception.toString());
    Throwable cause = exception.getCause();
    while (cause != null) {
      sb.append("\n    Caused by: ");
      sb.append(cause.toString());
      cause = cause.getCause();
    }
    result.set(sb.toString());
  }
  return result;
}
origin: org.wildfly.core/wildfly-controller

private static ModelNode getServiceFailureDescription(final StartException exception) {
  final ModelNode result = new ModelNode();
  if (exception != null) {
    // This is a bit of inside knowledge of StartException. Its toString() prefixes
    // the main data with 'org...StartException in org.foo.bar: " stuff that
    // will be redundant in the overall output we are creating so we omit that if we can.
    String msg = exception.getLocalizedMessage();
    if (msg == null || msg.length() == 0) {
      msg = exception.toString();
    }
    StringBuilder sb = new StringBuilder(msg);
    Throwable cause = exception.getCause();
    while (cause != null) {
      sb.append("\n    Caused by: ");
      sb.append(cause.toString());
      cause = cause.getCause();
    }
    result.set(sb.toString());
  }
  return result;
}
origin: wildfly/wildfly-core

private static ModelNode getServiceFailureDescription(final StartException exception) {
  final ModelNode result = new ModelNode();
  if (exception != null) {
    // This is a bit of inside knowledge of StartException. Its toString() prefixes
    // the main data with 'org...StartException in org.foo.bar: " stuff that
    // will be redundant in the overall output we are creating so we omit that if we can.
    String msg = exception.getLocalizedMessage();
    if (msg == null || msg.length() == 0) {
      msg = exception.toString();
    }
    StringBuilder sb = new StringBuilder(msg);
    Throwable cause = exception.getCause();
    while (cause != null) {
      sb.append("\n    Caused by: ");
      sb.append(cause.toString());
      cause = cause.getCause();
    }
    result.set(sb.toString());
  }
  return result;
}
origin: org.wildfly/wildfly-controller

final StartException startException = controller.getStartException();
if (startException != null) {
  msg.append(": ").append(startException.toString());
origin: org.wildfly.core/wildfly-controller

exMsg = startException.toString();
origin: wildfly/wildfly-core

exMsg = startException.toString();
origin: org.jboss.as/jboss-as-controller

case STARTING_to_START_FAILED: {
  synchronized (this) {
    failedControllers.put(controller, controller.getStartException().toString());
origin: org.jboss.msc/jboss-msc

    dependencyNames,
    failCount != 0,
    startException != null ? startException.toString() : null,
    unavailableDependencies > 0
);
origin: jboss-msc/jboss-msc

    dependencyNames,
    failCount != 0,
    startException != null ? startException.toString() : null,
    unavailableDependencies > 0
);
org.jboss.msc.serviceStartExceptiontoString

Popular methods of StartException

  • <init>
    Constructs a StartException with the specified cause. The detail message is set to:(cause == null ?
  • getStackTrace
  • setStackTrace
  • getCause
  • printStackTrace
  • getLocalizedMessage
  • getMessage

Popular in Java

  • Start an intent from android
  • setScale (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • getSystemService (Context)
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now