Example usage for com.amazonaws.services.codedeploy.model DeploymentInfo getErrorInformation

List of usage examples for com.amazonaws.services.codedeploy.model DeploymentInfo getErrorInformation

Introduction

In this page you can find the example usage for com.amazonaws.services.codedeploy.model DeploymentInfo getErrorInformation.

Prototype


public ErrorInformation getErrorInformation() 

Source Link

Document

Information about any error associated with this deployment.

Usage

From source file:jetbrains.buildServer.runner.codedeploy.AWSClient.java

License:Apache License

@Contract("null -> null")
@Nullable/* w ww . j  av a  2  s.co m*/
private Listener.ErrorInfo getErrorInfo(@Nullable DeploymentInfo dInfo) {
    if (dInfo == null)
        return null;

    final ErrorInformation errorInformation = dInfo.getErrorInformation();
    if (errorInformation == null)
        return null;

    final Listener.ErrorInfo errorInfo = new Listener.ErrorInfo();
    errorInfo.message = removeTrailingDot(errorInformation.getMessage());
    errorInfo.code = errorInformation.getCode();
    return errorInfo;
}