Skip to content

Function: isNoHandlerErrorForSubject()

Makaio Framework


Makaio Framework / bus-core / isNoHandlerErrorForSubject

isNoHandlerErrorForSubject(error, fullSubject): boolean

Defined in: ../../../packages/bus-core/src/utils/transport.ts:22

Detects a “no handler” error for a specific request subject.

Works for both in-process NoHandlerError instances and deserialized errors that carry a code + subject after a transport round-trip. The subject field is preserved by transport error serialization, so no fragile message-string matching is needed.

unknown

Error from a relayed request or transport response

string

Full request subject key (namespace.subject)

boolean

True when the error indicates no local handler for this subject