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

[Home](./index.md) &gt; [@csstools/css-calc](./css-calc.md) &gt; [ParseError](./css-calc.parseerror.md)

## ParseError class

Any errors are reported through the `onParseError` callback.

**Signature:**

```typescript
export declare class ParseError extends Error 
```
**Extends:** Error

## Constructors

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

Constructor


</th><th>

Modifiers


</th><th>

Description


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

[(constructor)(message, sourceStart, sourceEnd)](./css-calc.parseerror._constructor_.md)


</td><td>


</td><td>

Constructs a new instance of the `ParseError` class


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

## Properties

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

Property


</th><th>

Modifiers


</th><th>

Type


</th><th>

Description


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

[sourceEnd](./css-calc.parseerror.sourceend.md)


</td><td>


</td><td>

number


</td><td>

The index of the end character of the current token.


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

[sourceStart](./css-calc.parseerror.sourcestart.md)


</td><td>


</td><td>

number


</td><td>

The index of the start character of the current token.


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

