NServiceBus errors and constants¶
Note
NServiceBus licensing. NServiceBus is dual-licensed: the Reciprocal Public License 1.5, or Particular Software's commercial agreement (particular.net/LicenseAgreement). This format was captured from NServiceBus 10.2.9, and only the module's own .NET test programs use it. The Go module itself does not depend on NServiceBus.
ErrAmbiguousHeader¶
var ErrAmbiguousHeader = errors.NewSentinel("nservicebus.ambiguous_header",
"nservicebus: a header was supplied under two spellings with different values")
Returned by Decode when one of NServiceBus's headers arrives under two spellings with different
values. Header maps differ in whether they fold case, so neither can be taken as the one the producer
meant. Every other refusal is a go/envelope sentinel, listed in Errors, so
it is counted by the same code whichever format carried the event.
Constants¶
| Name | Value |
|---|---|
HeaderMessageID |
NServiceBus.MessageId |
HeaderEnclosedMessageTypes |
NServiceBus.EnclosedMessageTypes |
HeaderOriginatingEndpoint |
NServiceBus.OriginatingEndpoint |
HeaderContentType |
NServiceBus.ContentType |
HeaderTimeSent |
NServiceBus.TimeSent |
HeaderSubject |
ce-subject |
HeaderDataSchema |
ce-dataschema |
Precision |
time.Microsecond, TimeSent's |
Function¶
The format's String method returns nservicebus, which is how it is named in an
ErrAmbiguous or ErrUnrecognised.
The API is on pkg.go.dev.