Enhanced error class for Nagare with actionable suggestions
Provides structured error messages with:
- Clear error description
- Actionable suggestions for resolution
- Contextual information
- Error codes for programmatic handling
new
NagareError(message: string,code: string,suggestions?: string[],context?: Record<string, unknown>,docsUrl?: string,)
Create an enhanced error (backward compatible string version)
new
NagareError(messageOrKey: string | TranslationKey,code: string,suggestionsOrOptions?: string[] | ErrorOptions,context?: Record<string, unknown>,docsUrl?: string,)
readonly
abstract
context: Record<string, unknown>
readonly
abstract
docsUrl: string
readonly
abstract
suggestions: string[]
ErrorCodes for all available error codes
ErrorFactory for pre-built error constructors