Example usage for com.amazonaws.services.ecs.model ClientException getMessage

List of usage examples for com.amazonaws.services.ecs.model ClientException getMessage

Introduction

In this page you can find the example usage for com.amazonaws.services.ecs.model ClientException getMessage.

Prototype

@Override
    public String getMessage() 

Source Link

Usage

From source file:com.cloudbees.jenkins.plugins.amazonecs.ECSService.java

License:Open Source License

void deleteTask(String taskArn, String clusterArn) {
    final AmazonECSClient client = getAmazonECSClient();

    LOGGER.log(Level.INFO, "Delete ECS Slave task: {0}", taskArn);
    try {/*w  ww. j  a v  a  2 s .  c o  m*/
        client.stopTask(new StopTaskRequest().withTask(taskArn).withCluster(clusterArn));
    } catch (ClientException e) {
        LOGGER.log(Level.SEVERE, "Couldn't stop task arn " + taskArn + " caught exception: " + e.getMessage(),
                e);
    }
}