Sha256: f6b63a21e8a70e956a2bbba4a9a5755be2afa80b27ecc933a2b40f5f5e8f7f70
Contents?: true
Size: 900 Bytes
Versions: 5
Compression:
Stored size: 900 Bytes
Contents
module Exceptions class ImportError < StandardError; end class EmptyFileImportError < ImportError def initialize(message = "The file you uploaded has no valid content to import or the content cannot be read. If there is content in your file please try copying and pasting it in instead.") super(message) end end class EmptyStringImportError < ImportError def initialize(message = "The data you pasted in has no valid content to import or it cannot be read.") super(message) end end class IncorrectFileError < ImportError def initialize(message = "Sorry, you didn't upload the type of file you said you did.") super(message) end end class HeaderMismatchError < ImportError def initialize(message = "Sorry, we couldn't process your file. Did you correctly check whether your file has headers?") super(message) end end end
Version data entries
5 entries across 5 versions & 1 rubygems