# ExpiredDeadlineError

> Error class for when a deadline is expired.

> For the complete documentation index, see [llms.txt](/docs/llms.txt).

{/* This file is auto-generated by TypeDoc. Do not edit manually. */}

Defined in: [packages/smart-accounts/src/errors/permissionBuilderErrors.ts:84](https://github.com/alchemyplatform/aa-sdk/blob/v5.x.x/packages/smart-accounts/src/errors/permissionBuilderErrors.ts#L84)

Error class for when a deadline is expired.

## Extends

- [`PermissionBuilderError`](PermissionBuilderError)

## Constructors

### Constructor

```ts
new ExpiredDeadlineError(deadline, currentTime): ExpiredDeadlineError;
```

Defined in: [packages/smart-accounts/src/errors/permissionBuilderErrors.ts:93](https://github.com/alchemyplatform/aa-sdk/blob/v5.x.x/packages/smart-accounts/src/errors/permissionBuilderErrors.ts#L93)

Constructor for initializing an error message indicating the deadline has expired.

#### Parameters

<table>
  <thead>
    <tr>
      <th align="left">Parameter</th>
      <th align="left">Type</th>
      <th align="left">Description</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `deadline`
      </td>

      <td>
        `number`
      </td>

      <td>
        The expired deadline timestamp
      </td>
    </tr>

    <tr>
      <td>
        `currentTime`
      </td>

      <td>
        `number`
      </td>

      <td>
        The current timestamp
      </td>
    </tr>

  </tbody>
</table>

#### Returns

`ExpiredDeadlineError`

#### Overrides

```ts
PermissionBuilderError.constructor;
```

## Properties

<table>
  <thead>
    <tr>
      <th align="left">Property</th>
      <th align="left">Type</th>
      <th align="left">Default value</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        <a id="name" /> `name`
      </td>

      <td>
        `string`
      </td>

      <td>
        `"PermissionBuilder: ExpiredDeadlineError"`
      </td>
    </tr>

  </tbody>
</table>