method
handle_errors
v7.2.3 -
Show latest stable
- Class:
ActiveStorage::Service::AzureStorageService
handle_errors()private
No documentation available.
# File activestorage/lib/active_storage/service/azure_storage_service.rb, line 177
def handle_errors
yield
rescue Azure::Core::Http::HTTPError => e
case e.type
when "BlobNotFound"
raise ActiveStorage::FileNotFoundError
when "Md5Mismatch"
raise ActiveStorage::IntegrityError
else
raise
end
end