Skip to content
  • Cameron Bothner's avatar
    5cd2d07b
    Translate service-specific missing object exceptions into a generic one · 5cd2d07b
    Cameron Bothner authored
    `ActiveStorage::Blob#download` and `ActiveStorage::Blob#open` raise
    `ActiveStorage::FileNotFoundError` when the corresponding file is missing
    from the storage service. Services translate service-specific missing
    object exceptions (e.g. `Google::Cloud::NotFoundError` for the GCS service
    and `Errno::ENOENT` for the disk service) into
    `ActiveStorage::FileNotFoundError`.
    5cd2d07b
    Translate service-specific missing object exceptions into a generic one
    Cameron Bothner authored
    `ActiveStorage::Blob#download` and `ActiveStorage::Blob#open` raise
    `ActiveStorage::FileNotFoundError` when the corresponding file is missing
    from the storage service. Services translate service-specific missing
    object exceptions (e.g. `Google::Cloud::NotFoundError` for the GCS service
    and `Errno::ENOENT` for the disk service) into
    `ActiveStorage::FileNotFoundError`.
Loading