Sha256: 9a6e4f787020110d38112fe36ac9ab73017c03bda5da7bc9863da6a52867556e

Contents?: true

Size: 323 Bytes

Versions: 2

Compression:

Stored size: 323 Bytes

Contents

# typed: strict

module Typed
  class DeserializeError < StandardError
    extend T::Sig

    sig { returns({error: String}) }
    def to_h
      {error: message}
    end

    sig { params(_options: T::Hash[T.untyped, T.untyped]).returns(String) }
    def to_json(_options = {})
      JSON.generate(to_h)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sorbet-schema-0.3.0 lib/typed/deserialize_error.rb
sorbet-schema-0.2.2 lib/typed/deserialize_error.rb