This page has not been translated yet. Showing the default language version.
VRC0002: Does not support throwing exceptions
| Property | Value |
|---|---|
| ID | VRC0002 |
| Category | Compiler |
| Severity | Error |
| Runtime Version | 3.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