package com.amazonaws; /* loaded from: classes.dex */ public class AmazonServiceException extends AmazonClientException { private static final long serialVersionUID = 1; public String errorCode; public String errorMessage; public ErrorType errorType; public String requestId; public String serviceName; public int statusCode; public enum ErrorType { Client, Service, Unknown } public String getErrorCode() { return this.errorCode; } public String getErrorMessage() { return this.errorMessage; } public String getRequestId() { return this.requestId; } public String getServiceName() { return this.serviceName; } public int getStatusCode() { return this.statusCode; } public void setErrorCode(String str) { this.errorCode = str; } public void setErrorType(ErrorType errorType) { this.errorType = errorType; } public void setRequestId(String str) { this.requestId = str; } public void setServiceName(String str) { this.serviceName = str; } public void setStatusCode(int i) { this.statusCode = i; } public AmazonServiceException(String str) { super(str); this.errorType = ErrorType.Unknown; this.errorMessage = str; } public AmazonServiceException(String str, Exception exc) { super(null, exc); this.errorType = ErrorType.Unknown; this.errorMessage = str; } @Override // java.lang.Throwable public String getMessage() { return getErrorMessage() + " (Service: " + getServiceName() + "; Status Code: " + getStatusCode() + "; Error Code: " + getErrorCode() + "; Request ID: " + getRequestId() + ")"; } }