class UnsupportedNamedTypeError implements CommandError, ComparableByContent<UnsupportedNamedTypeError> {

    private final String typeName;

    public UnsupportedNamedTypeError(String typeName) {
        this.typeName = typeName;
    }

    public String getTypeName() {
        return typeName;
    }

    @Override
    public RuntimeException asException() {
        return new UnsupportedNamedTypeException(typeName);
    }

    @Override
    public boolean equalsByContent(UnsupportedNamedTypeError other) {
        return other.typeName.equals(typeName);
    }

    public static SerializationHandle<UnsupportedNamedTypeError> SERIALIZATION_HANDLE = new SerializationHandle<UnsupportedNamedTypeError>() {
        @Override
        public <S> UnsupportedNamedTypeError deserialize(DeserializationAdapter<S> adapter, S input) throws IOException {
            int formatNumber = adapter.readInt(input);
            Versions.check(formatNumber, v_7_0_0, v_7_0_0);

            String typeName = adapter.readString(input);
            return new UnsupportedNamedTypeError(typeName);
        }

        @Override
        public <O> void serialize(SerializationAdapter<O> adapter, O output, UnsupportedNamedTypeError error, Version backwardCompatibilityVersion, Scope scope) throws IOException {
            adapter.writeInt(output, v_7_0_0.getNumber());
            adapter.writeString(output, error.typeName);
        }

        @Override
        public int getTypeId() {
            return 19;
        }

        @Override
        public Class<UnsupportedNamedTypeError> getSerializedType() {
            return (Class) UnsupportedNamedTypeError.class;
        }

        @Override
        public UnsupportedNamedTypeError fromJsonCompatibleSnapshot(Map<String, Object> snapshot) throws IOException {
            int formatNumber = readIntValue(snapshot, "version");
            Versions.check(formatNumber, v_7_0_0, v_7_0_0);
            String typeName = (String) snapshot.get("typeName");
            return new UnsupportedNamedTypeError(typeName);
        }

        @Override
        public Map<String, Object> toJsonCompatibleSnapshot(UnsupportedNamedTypeError error, Version backwardCompatibilityVersion, Scope scope) throws IOException {<FILL_FUNCTION_BODY>}

        @Override
        public String getTypeName() {
            return "UnsupportedNamedTypeError";
        }

    };

}

            Map<String, Object> result = new HashMap<>();
            result.put("version", v_7_0_0.getNumber());
            result.put("typeName", error.typeName);
            return result;
        
<no_super_class>