Structured description of a single shader-graph validation failure. More...
Public Member Functions | |
| ShaderGraphValidationError (ShaderGraphValidationErrorCode code, string message, string? nodeId=null, string? edgeId=null, string? portId=null, string? suggestion=null) | |
Properties | |
| ShaderGraphValidationErrorCode | Code [get] |
| Discriminator for branching on failure category. | |
| string? | EdgeId [get] |
| Id of the offending edge, when the error is edge-scoped. | |
| string | Message [get] |
| Human-readable description of what went wrong. | |
| string? | NodeId [get] |
| Id of the offending node, when the error is node-scoped. | |
| string? | PortId [get] |
| Id of the offending port, when the error is port-scoped. | |
| string? | Suggestion [get] |
Optional remediation hint; may be null. | |
Structured description of a single shader-graph validation failure.
The validator returns these from ShaderGraph.ValidateModelJson(string) and packages them in ShaderGraphValidationException.Errors when ShaderGraph.SetModelJson(string) rejects a write.
|
inline |
|
get |
Discriminator for branching on failure category.
|
get |
Id of the offending edge, when the error is edge-scoped.
|
get |
Human-readable description of what went wrong.
|
get |
Id of the offending node, when the error is node-scoped.
|
get |
Id of the offending port, when the error is port-scoped.
|
get |
Optional remediation hint; may be null.