Sha256: c9f24e06ee3911310ac0ee0414844045b0033f4054534794ac18edb1330269ed

Contents?: true

Size: 1.1 KB

Versions: 25

Compression:

Stored size: 1.1 KB

Contents

module Paperclip
  # A base error class for Paperclip. Most of the error that will be thrown
  # from Paperclip will inherits from this class.
  class Error < StandardError
  end

  module Errors
    # Will be thrown when a storage method is not found.
    class StorageMethodNotFound < Paperclip::Error
    end

    # Will be thrown when a command or executable is not found.
    class CommandNotFoundError < Paperclip::Error
    end

    # Attachments require a content_type or file_name validator,
    # or to have explicitly opted out of them.
    class MissingRequiredValidatorError < Paperclip::Error
    end

    # Will be thrown when ImageMagic cannot determine the uploaded file's
    # metadata, usually this would mean the file is not an image.
    class NotIdentifiedByImageMagickError < Paperclip::Error
    end

    # Will be thrown if the interpolation is creating an infinite loop. If you
    # are creating an interpolator which might cause an infinite loop, you
    # should be throwing this error upon the infinite loop as well.
    class InfiniteInterpolationError < Paperclip::Error
    end
  end
end

Version data entries

25 entries across 23 versions & 4 rubygems

Version Path
kt-paperclip-4.4.0 lib/paperclip/errors.rb
paperclip-4.3.7 lib/paperclip/errors.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/paperclip-4.3.6/lib/paperclip/errors.rb
paperclip-5.0.0.beta2 lib/paperclip/errors.rb
paperclip-5.0.0.beta1 lib/paperclip/errors.rb
paperclip-4.3.6 lib/paperclip/errors.rb
paperclip-4.3.5 lib/paperclip/errors.rb
paperclip-4.3.4 lib/paperclip/errors.rb
paperclip-4.3.3 lib/paperclip/errors.rb
paperclip-4.3.2 lib/paperclip/errors.rb
paperclip-4.3.1 lib/paperclip/errors.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/paperclip-4.2.4/lib/paperclip/errors.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/paperclip-4.2.4/lib/paperclip/errors.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/paperclip-4.2.4/lib/paperclip/errors.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/paperclip-4.2.2/lib/paperclip/errors.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/paperclip-4.2.3/lib/paperclip/errors.rb
paperclip-4.3.0 lib/paperclip/errors.rb
paperclip-4.2.4 lib/paperclip/errors.rb
paperclip-4.2.3 lib/paperclip/errors.rb
paperclip-4.2.2 lib/paperclip/errors.rb