class Google::Cloud::Storage::FileVerificationError
Raised when a File
download fails the verification.
Attributes
gcloud_digest[RW]
The value of the digest on the google-cloud file.
local_digest[RW]
The value of the digest on the downloaded file.
type[RW]
The type of digest that failed verification, :md5 or :crc32c.
Public Class Methods
for_crc32c(gcloud_digest, local_digest)
click to toggle source
@private
# File lib/google/cloud/storage/errors.rb, line 49 def self.for_crc32c gcloud_digest, local_digest new("The downloaded file failed CRC32c verification.").tap do |e| e.type = :crc32c e.gcloud_digest = gcloud_digest e.local_digest = local_digest end end
for_md5(gcloud_digest, local_digest)
click to toggle source
@private
# File lib/google/cloud/storage/errors.rb, line 40 def self.for_md5 gcloud_digest, local_digest new("The downloaded file failed MD5 verification.").tap do |e| e.type = :md5 e.gcloud_digest = gcloud_digest e.local_digest = local_digest end end