Represents an SDL validation error. Extends the base ValidationError class.
ValidationError
Creates an instance of SdlValidationError.
SdlValidationError
The error message.
Optional
Static
Optional override for formatting stack traces
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Asserts a condition and throws an SdlValidationError if the condition is false.
The condition to assert.
The error message to throw if the assertion fails.
SdlValidationError.assert(someCondition, "Condition failed"); Copy
SdlValidationError.assert(someCondition, "Condition failed");
Create .stack property on a target object
Represents an SDL validation error. Extends the base
ValidationError
class.