Skip to main content

constructor

Summary

Creates an instance of ValidationError.

Signature

constructor(message: string, context?: ErrorContext);

Parameters

message

  • Type:string
The primary, human-readable error message.

context

Additional structured context about the error.