Sha256: dd7824a15d6460e54f72de1f8b61bc0cec53b4fbde537168bb7a3aeb9270016b

Contents?: true

Size: 942 Bytes

Versions: 20

Compression:

Stored size: 942 Bytes

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

    # 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

20 entries across 20 versions & 2 rubygems

Version Path
paperclip-3.5.4 lib/paperclip/errors.rb
paperclip-3.5.3 lib/paperclip/errors.rb
paperclip-3.5.2 lib/paperclip/errors.rb
paperclip-3.5.1 lib/paperclip/errors.rb
paperclip-3.5.0 lib/paperclip/errors.rb
paperclip-3.4.2 lib/paperclip/errors.rb
paperclip-3.4.1 lib/paperclip/errors.rb
paperclip-3.4.0 lib/paperclip/errors.rb
paperclip-3.3.1 lib/paperclip/errors.rb
paperclip-3.2.1 lib/paperclip/errors.rb
paperclip-3.3.0 lib/paperclip/errors.rb
paperclip-3.2.0 lib/paperclip/errors.rb
paperclip-3.1.4 lib/paperclip/errors.rb
paperclip-3.1.2 lib/paperclip/errors.rb
paperclip-3.1.1 lib/paperclip/errors.rb
paperclip-3.1.0 lib/paperclip/errors.rb
paperclip-3.0.4 lib/paperclip/errors.rb
paperclip-3.0.3 lib/paperclip/errors.rb
cloudfuji_paperclip-3.0.3 lib/paperclip/errors.rb
paperclip-3.0.2 lib/paperclip/errors.rb