# ExecuteTakeFirstOrThrowOptions (/docs/core/reference/api/interfaces/ExecuteTakeFirstOrThrowOptions)



[@kysoql/core](/docs/core/reference/api) / ExecuteTakeFirstOrThrowOptions

Options for customising the error thrown when a query returns no rows.

## Extends [#extends]

* [`AbortableQueryOptions`](/docs/core/reference/api/interfaces/AbortableQueryOptions)

## Properties [#properties]

| Property                                                     | Modifier   | Type                                                                                                                     | Description                                                          | Inherited from                                                                                                                                                                 |
| ------------------------------------------------------------ | ---------- | ------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <a id="api-property-errorconstructor" /> `errorConstructor?` | `readonly` | \| [`NoResultErrorConstructor`](/docs/core/reference/api/type-aliases/NoResultErrorConstructor) \| ((`node`) => `Error`) | Error constructor or factory used when the query returns no rows.    | -                                                                                                                                                                              |
| <a id="api-property-signal" /> `signal?`                     | `readonly` | [`QueryAbortSignal`](/docs/core/reference/api/interfaces/QueryAbortSignal)                                               | Abort waiting for this query without affecting unrelated operations. | [`AbortableQueryOptions`](/docs/core/reference/api/interfaces/AbortableQueryOptions).[`signal`](/docs/core/reference/api/interfaces/AbortableQueryOptions#api-property-signal) |
