private void checkSuccessful(final ModelNode result, final ModelNode operation) throws UnSuccessfulOperationException { if (!SUCCESS.equals(result.get(OUTCOME).asString())) { logger.error("Operation " + operation + " did not succeed. Result was " + result); throw new UnSuccessfulOperationException(result.get( FAILURE_DESCRIPTION).toString()); } }
for (ModelNode child : children.asList()) { if (UNDERTOW.equals(child.asString())) { throw new UnSuccessfulOperationException(Operations.getFailureDescription(result).asString()); throw new UnSuccessfulOperationException(Operations.getFailureDescription(result).asString());
for (ModelNode child : children.asList()) { if (UNDERTOW.equals(child.asString())) { throw new UnSuccessfulOperationException(Operations.getFailureDescription(result).asString()); throw new UnSuccessfulOperationException(Operations.getFailureDescription(result).asString());
private void checkSuccessful(final ModelNode result, final ModelNode operation) throws UnSuccessfulOperationException { if (!SUCCESS.equals(result.get(OUTCOME).asString())) { logger.error("Operation " + operation + " did not succeed. Result was " + result); throw new UnSuccessfulOperationException(result.get( FAILURE_DESCRIPTION).toString()); } }
private void checkSuccessful(final ModelNode result, final ModelNode operation) throws UnSuccessfulOperationException { if (!SUCCESS.equals(result.get(OUTCOME).asString())) { logger.error("Operation " + operation + " did not succeed. Result was " + result); throw new UnSuccessfulOperationException(result.get( FAILURE_DESCRIPTION).toString()); } }
private void checkSuccessful(final ModelNode result, final ModelNode operation) throws UnSuccessfulOperationException { if (!SUCCESS.equals(result.get(OUTCOME).asString())) { logger.error("Operation " + operation + " did not succeed. Result was " + result); throw new UnSuccessfulOperationException(result.get( FAILURE_DESCRIPTION).toString()); } }