Sha256: cef630ebda7317377a6f0d5d2a33f014cebbb8740d5e421bbccb124491910b99

Contents?: true

Size: 537 Bytes

Versions: 2

Compression:

Stored size: 537 Bytes

Contents

# frozen_string_literal: true

class Grover
  #
  # Error classes for calling out to Puppeteer NodeJS library
  #
  # Heavily based on the Schmooze library https://github.com/Shopify/schmooze
  #
  Error = Class.new(StandardError)
  DependencyError = Class.new(Error)
  module JavaScript # rubocop:disable Style/Documentation
    Error = Class.new(::Grover::Error)
    UnknownError = Class.new(Error)
    def self.const_missing(name)
      const_set name, Class.new(Error)
    end
  end
  UnsafeConfigurationError = Class.new(Error)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
grover-1.1.10 lib/grover/errors.rb
grover-1.1.9 lib/grover/errors.rb