public static String getIdentity()

in aws-core-common/src/main/java/jetbrains/buildServer/util/amazon/AWSException.java [78:96]


  public static String getIdentity(@NotNull Throwable t) {
    if (t instanceof AWSException) return ((AWSException) t).getIdentity();
    if (t instanceof AwsServiceException) {
      final AwsErrorDetails aed = ((AwsServiceException) t).awsErrorDetails();

      if (aed == null) {
        return t.toString();
      }

      SdkHttpResponse httpResponse = aed.sdkHttpResponse();
      String httpResponseDetails = httpResponse == null ? "" :
        httpResponse.statusText()
        .map(text -> text + httpResponse.statusCode())
        .orElse(String.valueOf(httpResponse.statusCode()));

      return aed.serviceName() + aed.errorCode() + httpResponseDetails;
    }
    return null;
  }