Skip to main content

constructor

Summary

Creates an instance of DocumentationError.

Signature

constructor(message: string, code?: ErrorCode, context?: ErrorContext, isUserError?: boolean);

Parameters

message

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

code

The standardized error code.

context

Additional structured context about the error.

isUserError

  • Type:boolean
  • Optional: Yes
Whether the error is a user-facing error.