aws-samples / amazon-textract-textractor

Analyze documents with Amazon Textract and generate output in multiple formats.
Apache License 2.0
360 stars 134 forks source link

Replace region mismatch with invalid S3 object #378

Closed Belval closed 1 week ago

Belval commented 1 week ago

Issue #, if available: #364

Description of changes: This removes RegionMismatchError and replaces it with InvalidS3ObjectException. Additionally the exception explanation makes it clear to check the S3 path first and then to check for region mismatch.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.