Class ExceptionCollection | Localization | 0.5.1-preview
docs.unity.cn
    Show / Hide Table of Contents

    Class ExceptionCollection

    An exception that represents a collection of exceptions. Useful for deferring the throwing of exceptions.

    Inheritance
    Object
    Exception
    ExceptionCollection<Exception>
    ExceptionCollection
    Inherited Members
    ExceptionCollection<Exception>.innerExceptions
    ExceptionCollection<Exception>.ThrowIfNotEmpty()
    ExceptionCollection<Exception>.AddRange(IEnumerable<Exception>)
    ExceptionCollection<Exception>.Try(Action)
    ExceptionCollection<Exception>.Add(Exception)
    ExceptionCollection<Exception>.Clear()
    ExceptionCollection<Exception>.Contains(Exception)
    ExceptionCollection<Exception>.CopyTo(Exception[], Int32)
    ExceptionCollection<Exception>.Remove(Exception)
    ExceptionCollection<Exception>.Count
    ExceptionCollection<Exception>.IsReadOnly
    ExceptionCollection<Exception>.GetEnumerator()
    ExceptionCollection<Exception>.IndexOf(Exception)
    ExceptionCollection<Exception>.Insert(Int32, Exception)
    ExceptionCollection<Exception>.RemoveAt(Int32)
    ExceptionCollection<Exception>.Item[Int32]
    ExceptionCollection<Exception>.Message
    Namespace: UnityEngine.Localization.SmartFormat.Tests.Common
    Syntax
    public class ExceptionCollection : ExceptionCollection<Exception>, ISerializable, _Exception, IList<Exception>, ICollection<Exception>, IEnumerable<Exception>, IEnumerable

    Constructors

    ExceptionCollection()

    Declaration
    public ExceptionCollection()

    ExceptionCollection(IEnumerable<Exception>)

    Declaration
    public ExceptionCollection(IEnumerable<Exception> exceptions)
    Parameters
    Type Name Description
    IEnumerable<Exception> exceptions

    ExceptionCollection(Exception)

    Declaration
    public ExceptionCollection(Exception exception)
    Parameters
    Type Name Description
    Exception exception

    Methods

    AddNewException(Exception, String, Object[])

    Adds a new Exception to the ExceptionCollection.

    Declaration
    public void AddNewException(Exception innerException, string message, params object[] args)
    Parameters
    Type Name Description
    Exception innerException

    The exception that is the cause of the current exception. Can be null.

    String message

    The issue message that explains the reason for the exception. This message can optionally contain string.Format placeholders for the following arguments.

    Object[] args

    An optional list of objects to use for formatting the message.

    AddNewException(String, Object[])

    Adds a new Exception to the ExceptionCollection.

    Declaration
    public void AddNewException(string message, params object[] args)
    Parameters
    Type Name Description
    String message

    The issue message that explains the reason for the exception. This message can optionally contain string.Format placeholders for the following arguments.

    Object[] args

    An optional list of objects to use for formatting the message.

    Combine(ExceptionCollection[])

    Declaration
    public static ExceptionCollection Combine(params ExceptionCollection[] combineAllExceptions)
    Parameters
    Type Name Description
    ExceptionCollection[] combineAllExceptions
    Returns
    Type Description
    ExceptionCollection

    Extension Methods

    EnumerableExtensions.FormatEach<T>(IEnumerable<T>, String)
    EnumerableExtensions.Random<T>(IEnumerable<T>)
    EnumerableExtensions.RandomOrDefault<T>(IEnumerable<T>)
    EnumerableExtensions.Split<TSource>(IEnumerable<TSource>, Int32)
    EnumerableExtensions.Split<TSource>(IEnumerable<TSource>, Func<TSource, Boolean>)
    EnumerableExtensions.SplitAfter<TSource>(IEnumerable<TSource>, Func<TSource, Boolean>)
    EnumerableExtensions.Split<TSource>(IEnumerable<TSource>, Func<TSource, Int32, Boolean>)
    EnumerableExtensions.SplitAfter<TSource>(IEnumerable<TSource>, Func<TSource, Int32, Boolean>)
    EnumerableExtensions.ForEach<TSource>(IEnumerable<TSource>, Action<TSource, Int32>)
    EnumerableExtensions.ForEach<TSource>(IEnumerable<TSource>, Action<TSource>)
    EnumerableExtensions.Concat<T>(IEnumerable<T>, T[])
    EnumerableExtensions.Union<T>(IEnumerable<T>, T[])
    ExceptionCollectionExtensions.TryAll<TSource, TException>(IEnumerable<TSource>, Action<TSource>)
    ExceptionCollectionExtensions.TryAll<TSource>(IEnumerable<TSource>, Action<TSource>)
    Back to top Copyright © 2019 Unity Technologies
    Generated by DocFX