Exception
Hierarchy
- Error
- Exception
Index
Constructors
Properties
Methods
Constructors
Private
constructor
Properties
message
message: string
A human-friendly representation of the exception.
Because many tools simply print Error.message
directly, this includes not only the textual description of what went wrong (the sassMessage) but also an indication of where in the Sass stylesheet the error occurred (the span) and the Sass stack trace at the point of error (the sassStack).
name
name: string
Readonly
sass Message
sass Message: string
Readonly
sass Stack
sass Stack: string
A human-friendly representation of the Sass stack trace at the point of error.
Readonly
span
The location the error occurred in the Sass file that triggered it.
Optional
stack
stack?: string
Static
Optional
prepare Stack Trace
prepare Stack Trace?: ((err: Error, stackTraces: CallSite[]) => any)
Type declaration
-
- (err: Error, stackTraces: CallSite[]): any
-
Optional override for formatting stack traces
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Parameters
-
err: Error
-
stackTraces: CallSite[]
Returns any
-
Static
stack Trace Limit
stack Trace Limit: number
Methods
to String
- to
String(): string -
Returns the same string as message.
Returns string
An exception thrown because a Sass compilation failed.