jose/docs/classes/util_errors.josenotsupported.md
2021-03-24 13:42:12 +01:00

65 lines
1.5 KiB
Markdown

# Class: JOSENotSupported
[util/errors](../modules/util_errors.md).JOSENotSupported
An error subclass thrown when a particular feature or algorithm is not supported by this
implementation or JOSE in general.
## Hierarchy
* [*JOSEError*](util_errors.joseerror.md)
**JOSENotSupported**
## Table of contents
### Constructors
- [constructor](util_errors.josenotsupported.md#constructor)
### Properties
- [code](util_errors.josenotsupported.md#code)
- [code](util_errors.josenotsupported.md#code)
## Constructors
### constructor
\+ **new JOSENotSupported**(`message?`: *string*): [*JOSENotSupported*](util_errors.josenotsupported.md)
#### Parameters:
Name | Type |
:------ | :------ |
`message?` | *string* |
**Returns:** [*JOSENotSupported*](util_errors.josenotsupported.md)
Inherited from: [JOSEError](util_errors.joseerror.md)
Defined in: [util/errors.ts:16](https://github.com/panva/jose/blob/v3.11.0/src/util/errors.ts#L16)
## Properties
### code
**code**: *string*
A unique error code for the particular error subclass.
Overrides: [JOSEError](util_errors.joseerror.md).[code](util_errors.joseerror.md#code)
Defined in: [util/errors.ts:68](https://github.com/panva/jose/blob/v3.11.0/src/util/errors.ts#L68)
___
### code
`Static` **code**: *string*= 'ERR\_JOSE\_NOT\_SUPPORTED'
A unique error code for the particular error subclass.
Overrides: [JOSEError](util_errors.joseerror.md).[code](util_errors.joseerror.md#code)
Defined in: [util/errors.ts:66](https://github.com/panva/jose/blob/v3.11.0/src/util/errors.ts#L66)