Class Exception
An exception thrown because a Sass compilation failed.
Hierarchy
- Error
- Exception
Index
Properties
Methods
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
span: SourceSpan
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
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
Static capture Stack Trace
- capture
Stack Trace(targetObject: object, constructorOpt?: Function): void
Create .stack property on a target object
Parameters
targetObject: object
Optional constructorOpt: Function
Returns void