Sha256: 8371e02a3d021dcc561b8723516a422c1cc28cf5ed5967237170ac5daad310ea

Contents?: true

Size: 439 Bytes

Versions: 1

Compression:

Stored size: 439 Bytes

Contents

module NightcrawlerSwift
  module Exceptions

    class BaseError < StandardError
      attr_accessor :original_exception

      def initialize exception
        super(exception.message)
        @original_exception = exception
      end
    end

    class ConnectionError < BaseError; end
    class ValidationError < ConnectionError; end
    class NotFoundError < BaseError; end
    class ConfigurationError < StandardError; end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nightcrawler_swift-0.4.0 lib/nightcrawler_swift/exceptions.rb