<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@csstools/css-tokenizer](./css-tokenizer.md) &gt; [ParseErrorWithToken](./css-tokenizer.parseerrorwithtoken.md) &gt; [(constructor)](./css-tokenizer.parseerrorwithtoken._constructor_.md)

## ParseErrorWithToken.(constructor)

Constructs a new instance of the `ParseErrorWithToken` class

**Signature:**

```typescript
constructor(message: string, sourceStart: number, sourceEnd: number, parserState: Array<string>, token: CSSToken);
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

message


</td><td>

string


</td><td>


</td></tr>
<tr><td>

sourceStart


</td><td>

number


</td><td>


</td></tr>
<tr><td>

sourceEnd


</td><td>

number


</td><td>


</td></tr>
<tr><td>

parserState


</td><td>

Array&lt;string&gt;


</td><td>


</td></tr>
<tr><td>

token


</td><td>

[CSSToken](./css-tokenizer.csstoken.md)


</td><td>


</td></tr>
</tbody></table>

