SpectralError
@prismatic-io/spectral › "errors" › SpectralError
#
Hierarchy↳ SpectralError
#
Index#
Constructors#
Properties#
Constructors#
constructor+ new SpectralError(message
: string): SpectralError
Defined in packages/spectral/src/errors.ts:4
Parameters:
Name | Type |
---|---|
message | string |
Returns: SpectralError
#
PropertiesOptional
cause#
• cause? : Error
Inherited from SpectralError.cause
Defined in node_modules/typescript/lib/lib.es2022.error.d.ts:26
#
isSpectralError• isSpectralError: boolean
Defined in packages/spectral/src/errors.ts:4
#
message• message: string
Inherited from SpectralError.message
Defined in node_modules/typescript/lib/lib.es5.d.ts:1023
#
name• name: string
Inherited from SpectralError.name
Defined in node_modules/typescript/lib/lib.es5.d.ts:1022
Optional
stack#
• stack? : undefined | string
Inherited from SpectralError.stack
Defined in node_modules/typescript/lib/lib.es5.d.ts:1024
Static
Error#
▪ Error: ErrorConstructor
Defined in node_modules/typescript/lib/lib.es5.d.ts:1033