docs.unity3d.com
    Show / Hide Table of Contents

    Struct APIResult

    The structure even containing a successful API call or if it was a warning/error the details about the error.

    This is also used to fill out the NpToolkitException class when throwing an exception

    Namespace: Unity.PSN.PS5
    Syntax
    public struct APIResult

    Fields

    apiResult

    The result of the API call

    Declaration
    public APIResultTypes apiResult
    Field Value
    Type Description
    APIResultTypes

    lineNumber

    The C++ line number of any error or warning

    Declaration
    public int lineNumber
    Field Value
    Type Description
    Int32

    sceErrorCode

    The SCE error code returned from any native SDK methods called

    Declaration
    public int sceErrorCode
    Field Value
    Type Description
    Int32

    Properties

    filename

    The native C++ filename if an error or warning occured

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

    message

    Any message returned from the API call

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

    RaiseException

    Should the result raise an expection. Return true if an error or warning has occured.

    Declaration
    public bool RaiseException { get; }
    Property Value
    Type Description
    Boolean

    Methods

    ErrorMessage()

    Return an error message for the result of a native call.

    Declaration
    public string ErrorMessage()
    Returns
    Type Description
    String

    The error message or null if there was no error

    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 25 September 2020