# Class: JOSEAlgNotAllowed An error subclass thrown when a JOSE Algorithm is not allowed per developer preference. ## Index ### Constructors * [constructor](_util_errors_.josealgnotallowed.md#constructor) ### Properties * [code](_util_errors_.josealgnotallowed.md#code) * [message](_util_errors_.josealgnotallowed.md#message) * [name](_util_errors_.josealgnotallowed.md#name) * [stack](_util_errors_.josealgnotallowed.md#stack) ## Constructors ### constructor \+ **new JOSEAlgNotAllowed**(`message?`: string): [JOSEAlgNotAllowed](_util_errors_.josealgnotallowed.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:** [JOSEAlgNotAllowed](_util_errors_.josealgnotallowed.md) ## Properties ### code • **code**: string = "ERR\_JOSE\_ALG\_NOT\_ALLOWED" *Overrides [JOSEError](_util_errors_.joseerror.md).[code](_util_errors_.joseerror.md#code)* *Defined in [src/util/errors.ts:49](https://github.com/panva/jose/blob/v3.2.0/src/util/errors.ts#L49)* ___ ### 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*