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

    Class FormattingException

    An exception caused while attempting to output the format.

    Inheritance
    Object
    Exception
    FormattingException
    Namespace: UnityEngine.Localization.SmartFormat.Core.Formatting
    Syntax
    public class FormattingException : Exception, ISerializable, _Exception

    Constructors

    FormattingException(FormatItem, Exception, Int32)

    Creates a new FormattingException exception instance.

    Declaration
    public FormattingException(FormatItem errorItem, Exception formatException, int index)
    Parameters
    Type Name Description
    FormatItem errorItem
    Exception formatException
    Int32 index

    FormattingException(FormatItem, String, Int32)

    Creates a new FormattingException exception instance.

    Declaration
    public FormattingException(FormatItem errorItem, string issue, int index)
    Parameters
    Type Name Description
    FormatItem errorItem
    String issue
    Int32 index

    Properties

    ErrorItem

    The FormatItem causing the error.

    Declaration
    public FormatItem ErrorItem { get; }
    Property Value
    Type Description
    FormatItem

    Format

    The string being formatted.

    Declaration
    public string Format { get; }
    Property Value
    Type Description
    String

    Index

    Index of the error.

    Declaration
    public int Index { get; }
    Property Value
    Type Description
    Int32

    Issue

    The reported issue.

    Declaration
    public string Issue { get; }
    Property Value
    Type Description
    String

    Message

    Returns a string representation of the exception.

    Declaration
    public override string Message { get; }
    Property Value
    Type Description
    String
    Overrides
    Exception.Message
    Back to top Copyright © 2019 Unity Technologies
    Generated by DocFX