jose/docs/classes/_util_errors_.jweinvalid.md
2020-12-02 10:00:42 +01:00

66 lines
1.3 KiB
Markdown

# Class: JWEInvalid
An error subclass thrown when a JWE is invalid.
## Index
### Constructors
* [constructor](_util_errors_.jweinvalid.md#constructor)
### Properties
* [code](_util_errors_.jweinvalid.md#code)
* [message](_util_errors_.jweinvalid.md#message)
* [name](_util_errors_.jweinvalid.md#name)
* [stack](_util_errors_.jweinvalid.md#stack)
## Constructors
### constructor
\+ **new JWEInvalid**(`message?`: string): [JWEInvalid](_util_errors_.jweinvalid.md)
*Defined in [src/util/errors.ts:11](https://github.com/panva/jose/blob/v3.2.0/src/util/errors.ts#L11)*
#### Parameters:
Name | Type |
------ | ------ |
`message?` | string |
**Returns:** [JWEInvalid](_util_errors_.jweinvalid.md)
## Properties
### code
**code**: string = "ERR\_JWE\_INVALID"
*Overrides [JOSEError](_util_errors_.joseerror.md).[code](_util_errors_.joseerror.md#code)*
*Defined in [src/util/errors.ts:73](https://github.com/panva/jose/blob/v3.2.0/src/util/errors.ts#L73)*
___
### message
**message**: string
*Defined in node_modules/typescript/lib/lib.es5.d.ts:974*
___
### name
**name**: string
*Defined in node_modules/typescript/lib/lib.es5.d.ts:973*
___
### stack
`Optional` **stack**: string
*Defined in node_modules/typescript/lib/lib.es5.d.ts:975*