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; }
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; }
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; }
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; }
final StartException startException = controller.getStartException(); if (startException != null) { msg.append(": ").append(startException.toString());
exMsg = startException.toString();
exMsg = startException.toString();
case STARTING_to_START_FAILED: { synchronized (this) { failedControllers.put(controller, controller.getStartException().toString());
dependencyNames, failCount != 0, startException != null ? startException.toString() : null, unavailableDependencies > 0 );
dependencyNames, failCount != 0, startException != null ? startException.toString() : null, unavailableDependencies > 0 );