bkotu6717/brilliant_web_scraper

View on GitHub
lib/scraper/errors.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

require 'nesty'

# Raise error as WebScraper Error
module WebScraper
  # Inclide nesty to have actual stacktrace of bug
  class Error < StandardError
    include Nesty::NestedError
  end

  class TimeoutError < Error; end

  class RequestError < Error; end

  class ParserError < Error; end

  class NonHtmlError < ParserError; end
end