Exception

An exception thrown because a Sass compilation failed.

Hierarchy

  • Error
    • Exception

Constructors

Properties

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: string
sassMessage: string

A textual description of what went wrong.

Unlike message, this does not include representations of span or sassStack.

sassStack: string

A human-friendly representation of the Sass stack trace at the point of error.

The location the error occurred in the Sass file that triggered it.

stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void