public String getStateReason() {
        return this.stateReason;
    }
<p>
If run of the canary failed, this field contains the reason for the error.
</p>

@return If run of the canary failed, this field contains the reason for the error.
aws-java-sdk-synthetics/src/main/java/com/amazonaws/services/synthetics/model/CanaryRunStatus.java