docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct NSError

    Information about an error condition including a domain, a domain-specific error code, and application-specific information.

    Implements
    IEquatable<NSError>
    Inherited Members
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: UnityEngine.XR.ARKit
    Assembly: solution.dll
    Syntax
    public struct NSError : IEquatable<NSError>
    Remarks

    This is a wrapper for Objective-C's NSError object.

    Properties

    Name Description
    code

    (Read Only) The error code associated with this NSError.

    domain

    (Read Only) A string containing the error domain.

    isNull

    (Read Only) Whether the underlying native pointer is null. This property is deprecated. Compare an NSError with null instead.

    localizedDescription

    (Read Only) A string containing the localized description of the error.

    localizedFailureReason

    (Read Only) A string containing the localized explanation of the reason for the error.

    localizedRecoverySuggestion

    (Read Only) A string containing the localized recovery suggestion for the error.

    Methods

    Name Description
    AsIntPtr()

    Gets the underlying Objective-C pointer.

    Equals(object)

    Tests for equality.

    Equals(NSError)

    Determines whether other is equal to this one as determined by isEqual:.

    GetHashCode()

    Generates a hash code for this NSError.

    ToErrorDomain()

    The domain as an NSErrorDomain enum.

    ToString()

    Generates a string representation of this NSError.

    Operators

    Name Description
    operator ==(NSError?, NSError?)

    Tests for equality.

    operator ==(NSError, NSError)

    Tests whether the underlying pointers for two NSError objects are the same.

    operator !=(NSError?, NSError?)

    Tests for inequality.

    operator !=(NSError, NSError)

    Tests whether the underlying pointers for two NSError objects are different.

    Extension Methods

    NSErrorExtensions.AsARKitErrorCode(NSError)
    NSErrorExtensions.AsCoreLocationErrorCode(NSError)
    In This Article
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Friday, September 22, 2023