Sha256: 79580914c26432e32cbed80107c0601a3befbcd73d33c3f125641c66aaf389f8

Contents?: true

Size: 341 Bytes

Versions: 6

Compression:

Stored size: 341 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 NotFoundError < BaseError; end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
nightcrawler_swift-0.2.3 lib/nightcrawler_swift/exceptions.rb
nightcrawler_swift-0.2.2 lib/nightcrawler_swift/exceptions.rb
nightcrawler_swift-0.2.1 lib/nightcrawler_swift/exceptions.rb
nightcrawler_swift-0.2.0 lib/nightcrawler_swift/exceptions.rb
nightcrawler_swift-0.1.1 lib/nightcrawler_swift/exceptions.rb
nightcrawler_swift-0.1.0 lib/nightcrawler_swift/exceptions.rb