Class FormattingException | Localization | 0.9.0-preview
docs.unity3d.com
    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 © 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