Kanzi 4.1.0
ShaderGraphValidationException Class Referencesealed

Thrown by ShaderGraph.SetModelJson(string) when the supplied model JSON parses but fails structural or semantic validation. More...

Inheritance diagram for ShaderGraphValidationException:
[legend]
Collaboration diagram for ShaderGraphValidationException:
[legend]

Public Member Functions

 ShaderGraphValidationException ()
 
 ShaderGraphValidationException (IReadOnlyList< ShaderGraphValidationError > errors)
 
 ShaderGraphValidationException (string message)
 
 ShaderGraphValidationException (string message, Exception innerException)
 

Properties

IReadOnlyList< ShaderGraphValidationErrorErrors [get]
 One entry per detected problem.
 

Detailed Description

Thrown by ShaderGraph.SetModelJson(string) when the supplied model JSON parses but fails structural or semantic validation.

Extends ArgumentException so callers that only catch the legacy contract (well-formedness errors) still see these failures, while richer callers can catch this type to read the structured Errors list.

Constructor & Destructor Documentation

◆ ShaderGraphValidationException() [1/4]

◆ ShaderGraphValidationException() [2/4]

◆ ShaderGraphValidationException() [3/4]

◆ ShaderGraphValidationException() [4/4]

ShaderGraphValidationException ( string message,
Exception innerException )
inline

Property Documentation

◆ Errors

One entry per detected problem.

Empty for instances constructed via the standard Exception-shape constructors; non-empty for instances constructed with an explicit error list (the validator's normal path).