1 | import {SourceSpan} from './logger';
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | export class Exception extends Error {
|
9 | private constructor();
|
10 |
|
11 | /**
|
12 | * A human-friendly representation of the exception.
|
13 | *
|
14 | * Because many tools simply print `Error.message` directly, this includes not
|
15 | * only the textual description of what went wrong (the {@link sassMessage})
|
16 | * but also an indication of where in the Sass stylesheet the error occurred
|
17 | * (the {@link span}) and the Sass stack trace at the point of error (the
|
18 | * {@link sassStack}).
|
19 | */
|
20 | message: string;
|
21 |
|
22 | /**
|
23 | * A textual description of what went wrong.
|
24 | *
|
25 | * Unlike {@link message}, this does *not* include representations of {@link
|
26 | * span} or {@link sassStack}.
|
27 | */
|
28 | readonly sassMessage: string;
|
29 |
|
30 | |
31 |
|
32 |
|
33 |
|
34 | readonly sassStack: string;
|
35 |
|
36 |
|
37 | readonly span: SourceSpan;
|
38 |
|
39 |
|
40 | toString(): string;
|
41 | }
|