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
sassMessage
sassMessage : string
Readonly
sassStack
sassStack : 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
prepareStackTrace
prepareStackTrace ?: ((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
stackTraceLimit
stackTraceLimit : number
Methods
toString
- to
String (): string -
Returns the same string as message.
Returns string
An exception thrown because a Sass compilation failed.