Sha256: f4c7403f8d1327bacf32ce7712b0832ae40c6f764c6d0d7328e03dbcdb1e20df
Contents?: true
Size: 1.35 KB
Versions: 5
Compression:
Stored size: 1.35 KB
Contents
# frozen_string_literal: true module ActiveStorage # Generic base class for all Active Storage exceptions. class Error < StandardError; end # Raised when ActiveStorage::Blob#variant is called on a blob that isn't variable. # Use ActiveStorage::Blob#variable? to determine whether a blob is variable. class InvariableError < Error; end # Raised when ActiveStorage::Blob#preview is called on a blob that isn't previewable. # Use ActiveStorage::Blob#previewable? to determine whether a blob is previewable. class UnpreviewableError < Error; end # Raised when ActiveStorage::Blob#representation is called on a blob that isn't representable. # Use ActiveStorage::Blob#representable? to determine whether a blob is representable. class UnrepresentableError < Error; end # Raised when uploaded or downloaded data does not match a precomputed checksum. # Indicates that a network error or a software bug caused data corruption. class IntegrityError < Error; end # Raised when ActiveStorage::Blob#download is called on a blob where the # backing file is no longer present in its service. class FileNotFoundError < Error; end # Raised when a Previewer is unable to generate a preview image. class PreviewError < Error; end # Raised when direct upload fails because of the invalid token class InvalidDirectUploadTokenError < Error; end end
Version data entries
5 entries across 5 versions & 1 rubygems