public AmazonS3Exception build ( ) { AmazonS3Exception s3Exception = errorResponseXml == null ? new AmazonS3Exception ( errorMessage ) : new AmazonS3Exception ( errorMessage , errorResponseXml ) ; s3Exception . setErrorCode ( errorCode ) ; s3Exception . setExtendedRequestId ( extendedRequestId ) ; s3Exception . setStatusCode ( statusCode ) ; s3Exception . setRequestId ( requestId ) ; s3Exception . setCloudFrontId ( cloudFrontId ) ; s3Exception . setAdditionalDetails ( additionalDetails ) ; s3Exception . setErrorType ( errorTypeOf ( statusCode ) ) ; return s3Exception ; }
Creates a new AmazonS3Exception object with the values set .