componentRegistry/errors
Esta página aún no está disponible en tu idioma.
Classes
Section titled “Classes”ComponentNotFoundError
Section titled “ComponentNotFoundError”Defined in: studiocms/packages/studiocms/src/componentRegistry/errors.ts:56^
Error thrown when a requested component cannot be found in the registry.
Remarks
Section titled “Remarks”This error extends a tagged error type with the tag ‘ComponentNotFoundError’.
Example
Section titled “Example”throw new ComponentNotFoundError({ componentName: 'MyComponent' });
Extends
Section titled “Extends”any
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ComponentNotFoundError(): ComponentNotFoundError
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Data.TaggedError('ComponentNotFoundError')<{ readonly componentName: string;}>.constructor
ComponentRegistryError
Section titled “ComponentRegistryError”Defined in: studiocms/packages/studiocms/src/componentRegistry/errors.ts:17^
Error class representing issues related to the component registry.
Remarks
Section titled “Remarks”This error extends a tagged error type with the tag 'ComponentRegistryError'
.
Example
Section titled “Example”throw new ComponentRegistryError({ message: "Component not found" });
Extends
Section titled “Extends”any
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ComponentRegistryError(): ComponentRegistryError
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Data.TaggedError('ComponentRegistryError')<{ readonly message: string; readonly cause?: unknown;}>.constructor
FileParseError
Section titled “FileParseError”Defined in: studiocms/packages/studiocms/src/componentRegistry/errors.ts:37^
Error thrown when a file fails to parse.
Remarks
Section titled “Remarks”This error extends a tagged error type with the tag ‘FileParseError’.
Example
Section titled “Example”throw new FileParseError({ filePath: '/path/to/file', message: 'Invalid format' });
Extends
Section titled “Extends”any
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new FileParseError(): FileParseError
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Data.TaggedError('FileParseError')<{ readonly filePath: string; readonly message: string; readonly cause?: unknown;}>.constructor