# Class: JWSInvalid

[💗 Help the project](https://github.com/sponsors/panva)

An error subclass thrown when a JWS is invalid.

## Table of contents

### Constructors

- [constructor](util_errors.JWSInvalid.md#constructor)

### Properties

- [code](util_errors.JWSInvalid.md#code)

### Accessors

- [code](util_errors.JWSInvalid.md#code-1)

## Constructors

### constructor

• **new JWSInvalid**(`message?`)

#### Parameters

| Name | Type |
| :------ | :------ |
| `message?` | `string` |

## Properties

### code

• **code**: `string` = `'ERR_JWS_INVALID'`

A unique error code for the particular error subclass.

## Accessors

### code

• `Static` `get` **code**(): ``"ERR_JWS_INVALID"``

A unique error code for the particular error subclass.

#### Returns

``"ERR_JWS_INVALID"``
