diff options
Diffstat (limited to 'activestorage/lib/active_storage/errors.rb')
-rw-r--r-- | activestorage/lib/active_storage/errors.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/activestorage/lib/active_storage/errors.rb b/activestorage/lib/active_storage/errors.rb new file mode 100644 index 0000000000..bedcd080c4 --- /dev/null +++ b/activestorage/lib/active_storage/errors.rb @@ -0,0 +1,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 |