Skip to content

Result property of ResultException is not set in C# GameSDK #5138

@ryze312

Description

@ryze312

Description

Result property is not set in constructor of exception, therefore it is always Result.Ok which prevents proper exception handling.

Steps to Reproduce

public partial class ResultException : Exception
{
        public readonly Result Result;

        public ResultException(Result result) : base(result.ToString())
        {
        }
}

Expected Behavior

Result property is set accordingly to exception type (result value)

Current Behavior

Result property is always at it's default value - Result.Ok

Screenshots/Videos

No response

Client and System Information

Artix Linux
C# .NET
Discord Canary
GameSDK 3.2.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions