---
title: parserError
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/xmlparser/parsererror
---

# parserError

An NSError object from which you can obtain information about a parsing error.

## Declaration

```swift
var parserError: (any Error)? { get }
```

## Discussion

Discussion You may access this property after a parsing operation abnormally terminates to determine the cause of error.

## See Also

### Parsing

- [parse()](foundation/xmlparser/parse().md)
- [abortParsing()](foundation/xmlparser/abortparsing().md)
