instance method
handle_errors
Ruby on Rails 8.0.4
Since v6.0.6 Last seen in v8.0.4 PrivateSignature
handle_errors()
No documentation comment.
Source
# File activestorage/lib/active_storage/service/azure_storage_service.rb, line 184
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
Defined in activestorage/lib/active_storage/service/azure_storage_service.rb line 184
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Service::AzureStorageService