# IRegexpParseError
<span class="source-link">[[Source]](src/iregex/i_regexp.md#L-0-1)</span>

Error from parsing or compiling an invalid I-Regexp pattern.
Covers both parse-time errors (invalid syntax) and compile-time errors
(e.g., pattern too complex for NFA state limit).


```pony
class val IRegexpParseError
```

## Constructors

### create
<span class="source-link">[[Source]](src/iregex/i_regexp.md#L-0-10)</span>


```pony
new val create(
  message': String val,
  offset': USize val)
: IRegexpParseError val^
```
#### Parameters

*   message': [String](builtin-String.md) val
*   offset': [USize](builtin-USize.md) val

#### Returns

* [IRegexpParseError](iregex-IRegexpParseError.md) val^

---

## Public fields

### let message: [String](builtin-String.md) val
<span class="source-link">[[Source]](src/iregex/i_regexp.md#L-0-7)</span>



---

### let offset: [USize](builtin-USize.md) val
<span class="source-link">[[Source]](src/iregex/i_regexp.md#L-0-8)</span>



---

## Public Functions

### string
<span class="source-link">[[Source]](src/iregex/i_regexp.md#L-0-14)</span>


```pony
fun box string()
: String iso^
```

#### Returns

* [String](builtin-String.md) iso^

---

