Struct DeserializationResult | Serialization | 1.3.1-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Struct DeserializationResult

    Object containing the results of a deserialization. Use this to capture any errors or events.

    Namespace: Unity.Serialization.Json
    Syntax
    public struct DeserializationResult

    Properties

    Errors

    Returns any events with Error that occured during deserialization.

    Declaration
    public IEnumerable<DeserializationEvent> Errors { get; }
    Property Value
    Type Description
    IEnumerable<DeserializationEvent>

    Events

    Returns all DeserializationEvent that occured during deserialization.

    Declaration
    public IEnumerable<DeserializationEvent> Events { get; }
    Property Value
    Type Description
    IEnumerable<DeserializationEvent>

    Exceptions

    Returns any events with Exception that occured during deserialization.

    Declaration
    public IEnumerable<DeserializationEvent> Exceptions { get; }
    Property Value
    Type Description
    IEnumerable<DeserializationEvent>

    Logs

    Returns any events with Log that occured during deserialization.

    Declaration
    public IEnumerable<DeserializationEvent> Logs { get; }
    Property Value
    Type Description
    IEnumerable<DeserializationEvent>

    Warnings

    Returns any events with Warning that occured during deserialization.

    Declaration
    public IEnumerable<DeserializationEvent> Warnings { get; }
    Property Value
    Type Description
    IEnumerable<DeserializationEvent>

    Methods

    DidSucceed()

    Gets the status of the deserialization.

    Declaration
    public bool DidSucceed()
    Returns
    Type Description
    Boolean

    true if deserialization succeeded; otherwise, false.

    Throw()

    Rethrows any errors encountered during deserialization.

    Declaration
    public void Throw()
    Remarks

    If a single exception was encountered the exception is re-thrown. If multiple exceptions were encountered a AggregateException is thrown.

    In This Article
    • Properties
      • Errors
      • Events
      • Exceptions
      • Logs
      • Warnings
    • Methods
      • DidSucceed()
      • Throw()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023