Constructor
new NameValidationError(name, nameType, validationResult, invalidIndex, optionsopt)
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
name |
string | The invalid name | |
nameType |
string | Type of name (node, topic, service, etc.) | |
validationResult |
string | The validation error message | |
invalidIndex |
number | Index where validation failed | |
options |
object |
<optional> |
Additional options |
- Source:
Extends
Methods
toJSON() → {object}
Returns a detailed error object for logging/serialization
- Overrides:
- Source:
Returns:
Structured error information
- Type
- object
toString() → {string}
Returns a user-friendly error description
- Overrides:
- Source:
Returns:
Formatted error string
- Type
- string