Sha256: 7ff8a5f2e1f41c0e81fd0b410c899585870979bd7671125437e77e97dc13b6d1

Contents?: true

Size: 1.13 KB

Versions: 48

Compression:

Stored size: 1.13 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
end

Version data entries

48 entries across 48 versions & 4 rubygems

Version Path
activestorage-6.1.2 lib/active_storage/errors.rb
activestorage-6.1.1 lib/active_storage/errors.rb
activestorage-6.1.0 lib/active_storage/errors.rb
activestorage-6.1.0.rc2 lib/active_storage/errors.rb
activestorage-6.1.0.rc1 lib/active_storage/errors.rb
activestorage-6.0.3.4 lib/active_storage/errors.rb
activestorage-6.0.3.3 lib/active_storage/errors.rb
activestorage-6.0.3.2 lib/active_storage/errors.rb
activestorage-6.0.3.1 lib/active_storage/errors.rb
activestorage-6.0.3 lib/active_storage/errors.rb
activestorage-6.0.3.rc1 lib/active_storage/errors.rb
activestorage-6.0.2.2 lib/active_storage/errors.rb
argon-1.3.1 vendor/bundle/ruby/2.7.0/gems/activestorage-6.0.2.1/lib/active_storage/errors.rb
symbolic_enum-1.1.5 vendor/bundle/ruby/2.7.0/gems/activestorage-6.0.2.1/lib/active_storage/errors.rb
activestorage-6.0.2.1 lib/active_storage/errors.rb
activestorage-6.0.2 lib/active_storage/errors.rb
activestorage-6.0.2.rc2 lib/active_storage/errors.rb
activestorage-6.0.2.rc1 lib/active_storage/errors.rb
activestorage-6.0.1 lib/active_storage/errors.rb
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/activestorage-6.0.0/lib/active_storage/errors.rb