Sha256: 52c26fce78860b1bd4a9cecf3b863771fa1683b873de5b84fa9d2fb519711ac7
Contents?: true
Size: 596 Bytes
Versions: 3
Compression:
Stored size: 596 Bytes
Contents
module Arx # Custom error for missing links on an arXiv paper. class MissingLinkError < StandardError def initialize(link_type) super "This arXiv paper does not have a #{link_type} link" end end # Custom error for missing fields on an arXiv paper. class MissingFieldError < StandardError def initialize(field) super "This arXiv paper is missing the `#{field}` field" end end # Custom error for missing arXiv papers. class MissingPaper < StandardError def initialize(id) super "Couldn't find an arXiv paper with ID: #{id}" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
arx-0.3.0 | lib/arx/exceptions.rb |
arx-0.2.0 | lib/arx/exceptions.rb |
arx-0.1.0 | lib/arx/exceptions.rb |