Vixen
02b45cc4
csharp
public readonly record struct AssetOperation

What went wrong, or nothing.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

A result rather than an exception, because every one of these failures is an ordinary thing to meet — a name with a slash in it, a file that is open in another program, a folder that already has one of that name. An editor that took the process down for any of them would be one nobody renames anything in twice.

Fields and properties (3)

  • public bool Ok

    Whether it happened.

  • public string? Message

    Why not, as a sentence for a person.

  • public static AssetOperation Done

    It happened.

Methods (2)

  • public AssetOperation(bool Ok, string? Message)

    What went wrong, or nothing.

  • public static AssetOperation Failed(string message)

    It did not, and this is why.

Used by (6)

  • AssetOperationTestsVixen.Editor.Core.Tests
  • AssetOperationsVixen.Editor.Core
  • EditorApplicationVixen.Editor.App
  • GridViewTestsVixen.Editor.App.Tests
  • ProjectTreeStateTestsVixen.Editor.App.Tests
  • ScenarioTestsVixen.Editor.App.Tests