2018-01-10 12:33:41 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-01-10 12:12:04 -05:00
|
|
|
module ActiveStorage
|
2018-08-10 18:35:49 -04:00
|
|
|
# Generic base class for all Active Storage exceptions.
|
|
|
|
class Error < StandardError; end
|
|
|
|
|
|
|
|
class InvariableError < Error; end
|
|
|
|
class UnpreviewableError < Error; end
|
|
|
|
class UnrepresentableError < Error; end
|
2018-05-28 16:28:46 -04:00
|
|
|
|
|
|
|
# Raised when uploaded or downloaded data does not match a precomputed checksum.
|
|
|
|
# Indicates that a network error or a software bug caused data corruption.
|
2018-08-10 18:35:49 -04:00
|
|
|
class IntegrityError < Error; end
|
2018-01-10 12:12:04 -05:00
|
|
|
end
|