<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@digitalpersona/services](./services.md) &gt; [ServiceError](./services.serviceerror.md) &gt; [(constructor)](./services.serviceerror.(constructor).md)

## ServiceError.(constructor)

Constructs the object.

<b>Signature:</b>

```typescript
constructor(code: number, message: string);
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  code | <code>number</code> |  |
|  message | <code>string</code> |  |

