This topic is not available in your language. Therefore, the original version (ja-jp) is displayed.

VRC0002: Does not support throwing exceptions

PropertyValue
IDVRC0002
CategoryCompiler
SeverityError
Runtime Version3.1.0 ~ latest

Does not support throwing exceptions

Example

Code with Diagnostic

using System;
 
using UdonSharp;
 
class TestBehaviour0 : UdonSharpBehaviour
{
    public void TestMethod()
    {
        throw new NotSupportedException();
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    }
}

Code with Fix

// NOT YET PROVIDED
VRC0002: Does not support throwing exceptions / Udon Analyzer / Natsuneko Laboratory Docs