Skip to content

Function: subscriptionErrorReason() ​

ts
function subscriptionErrorReason(err): string | undefined;

Defined in: netconf/src/operations/subscriptions/requests.ts:225

The reason identity of a subscription RPC's refusal, from error-app-tag (RFC 8640 §2.4.3), module-qualified as RFC 7951 writes it: ietf-subscribed-notifications:no-such-subscription, ietf-yang-push:period-unsupported, … A bare name is taken as ietf-subscribed-notifications', and the sn/yp prefixes servers use are written out. Undefined if the error doesn't carry one.

Parameters ​

err ​

unknown

Returns ​

string | undefined

Released under the MIT Licence.