Sha256: 60a10e8e4bdf66c2eed136b140b26e9b13dbbef08e74a3d4982c48428f8404f6

Contents?: true

Size: 501 Bytes

Versions: 6

Compression:

Stored size: 501 Bytes

Contents

require 'fingerprintable'

require "simply_serializable/version"
require "simply_serializable/serializer"
require "simply_serializable/mixin"

module SimplySerializable
  class Error < StandardError
    attr_reader :type

    def initialize(message, type:)
      @type = type
      super(message)
    end

    class CircularDependencyError < Error
      def initialize
        super(
          'Circular dependency detected',
          type: :circular_dependency
        )
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
simply_serializable-1.5.1 lib/simply_serializable.rb
simply_serializable-1.5.0 lib/simply_serializable.rb
simply_serializable-1.4.2 lib/simply_serializable.rb
simply_serializable-1.4.1 lib/simply_serializable.rb
simply_serializable-1.4.0 lib/simply_serializable.rb
simply_serializable-1.3.0 lib/simply_serializable.rb