# API Reference v10.3.1 (Python)

## GCodeSyntaxExceptionData (data class)

Module: zaber_motion.exceptions

Contains additional data for [GCodeSyntaxException](https://software.zaber.com/motion-library/api/py/exceptions/gcodesyntaxexception.md).

To use this type, add `from zaber_motion.exceptions import GCodeSyntaxExceptionData` to the top of your source code.

### Properties

#### `from_block`

`g_code_syntax_exception_data.from_block`

Type: `int`

The index in the block string that caused the exception.

#### `to_block`

`g_code_syntax_exception_data.to_block`

Type: `int`

The end index in the block string that caused the exception. The end index is exclusive.
