Sha256: e2fa21b9522fc76804fd8fde3cf7838416508329ecb0c01e8674feb94d198a9b

Contents?: true

Size: 1.21 KB

Versions: 24

Compression:

Stored size: 1.21 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. If you are
    # consistently receiving this error on PDFs make sure that you have
    # installed Ghostscript.
    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

24 entries across 24 versions & 4 rubygems

Version Path
kt-paperclip-7.2.2 lib/paperclip/errors.rb
kt-paperclip-7.2.1 lib/paperclip/errors.rb
kt-paperclip-7.2.0 lib/paperclip/errors.rb
kt-paperclip-6.4.2 lib/paperclip/errors.rb
kt-paperclip-5.4.0 lib/paperclip/errors.rb
kt-paperclip-7.1.1 lib/paperclip/errors.rb
kt-paperclip-7.1.0 lib/paperclip/errors.rb
kt-paperclip-7.0.1 lib/paperclip/errors.rb
kt-paperclip-7.0.0 lib/paperclip/errors.rb
kt-paperclip-6.4.1 lib/paperclip/errors.rb
kt-paperclip-6.4.0 lib/paperclip/errors.rb
kt-paperclip-6.3.0 lib/paperclip/errors.rb
kt-paperclip-6.2.2 lib/paperclip/errors.rb
kt-paperclip-6.2.1 lib/paperclip/errors.rb
kt-paperclip-6.2.0 lib/paperclip/errors.rb
paperclip-6.1.0 lib/paperclip/errors.rb
paperclip-6.0.0 lib/paperclip/errors.rb
paperclip-5.3.0 lib/paperclip/errors.rb
paperclip-5.2.1 lib/paperclip/errors.rb
paperclip-5.2.0 lib/paperclip/errors.rb