method
handle_errors
v6.1.7.7 -
Show latest stable
- Class:
ActiveStorage::Service::AzureStorageService
handle_errors()private
No documentation available.
# File activestorage/lib/active_storage/service/azure_storage_service.rb, line 157
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