public static String getMessage()

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


  public static String getMessage(@NotNull Throwable t) {
    if (t instanceof AWSException) return t.getMessage();
    if (t instanceof SdkServiceException)  return "AWS error: " + removeTrailingDot(t.getMessage());
    if (t instanceof SdkClientException) {
      final String message = t.getMessage();
      if (message.contains(NETWORK_PROBLEM_MESSAGE)) {
        return "Unable to access AWS. Check your network settings and try again.";
      } else {
        return "AWS client error: " + removeTrailingDot(message);
      }
    }
    return "Unexpected error: " + removeTrailingDot(t.getMessage());
  }