aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/lib/active_storage/errors.rb
blob: bedcd080c436a259e0b50042f0c1f92429101eec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

module ActiveStorage
  class InvariableError < StandardError; end
  class UnpreviewableError < StandardError; end
  class UnrepresentableError < StandardError; 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 < StandardError; end
end