Private constructor
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).
Readonly sassMessage
Readonly sassStack
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
Static Optional prepareStackTrace
Optional override for formatting stack traces
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Static stackTraceLimit
Returns the same string as message.
Static captureStackTrace
Create .stack property on a target object
Optional constructorOpt: Function
© 2006–2025 the Sass team, and numerous contributors
Licensed under the MIT License.
https://sass-lang.com/documentation/js-api/classes/Exception
An exception thrown because a Sass compilation failed.