Pudu programming language
Menu
Package

@chrismichaelps / pudu-lang-mediator

In-process messaging for Pudu: requests, notifications, streams, pipeline behaviors, processors, and exception handling

0.1.0Apache-2.01

InstallClose

Messages.pudu

Pudu54 lines2.2 KB

GitHub ↗
1/** @Constants.Messages.Module — every sentence the package reports */2module PuduLangMediator.Constants.Messages34/// A failure raised by a handler; `<1>` is the error.5export const RAISED: Str = "The handler failed: <1>"67/// A message without a handler; `<1>` is its kind's name.8export const UNHANDLED: Str = "No handler is registered for '<1>'."910/// A message routed to another kind of the same name; `<1>` is the name.11export const MISMATCHED: Str = "'<1>' is registered for another kind of the same name."1213/// A message an open component refused; `<1>` is the reason.14export const REFUSED: Str = "The message was refused: <1>"1516/// A message that failed validation; `<1>` is its violations.17export const INVALID: Str = "The message is invalid: <1>"1819/// One validation violation; `<1>` is the property and `<2>` the message.20export const VIOLATION: Str = "<1>: <2>"2122/// A cancellation; `<1>` is its reason.23export const CANCELLED: Str = "The message was cancelled: <1>"2425/// A handler that stopped its thread; `<1>` is what it said.26export const CRASHED: Str = "A handler stopped its thread: <1>"2728/// Several failures of one publication; `<1>` is their count and `<2>` their descriptions.29export const AGGREGATE: Str = "<1> handlers failed: <2>"3031/// An outcome holding a value; `<1>` is the value.32export const SUCCEEDED: Str = "Ok(<1>)"3334/// A mediator refused at build time; `<1>` is its problems.35export const MEDIATOR_INVALID: Str = "The mediator is invalid: <1>"3637/// A kind registered without a name.38export const EMPTY_NAME: Str = "a kind is registered without a name"3940/// Two kinds sharing one name; `<1>` is the name.41export const NAME_TAKEN: Str = "'<1>' names two different kinds"4243/// A request or stream kind with more than one handler; `<1>` is its name and `<2>` the count.44export const DUPLICATE_HANDLER: Str = "'<1>' has <2> handlers; a request or stream takes exactly one"4546/// A request or stream kind with components but no handler; `<1>` is its name.47export const WITHOUT_HANDLER: Str = "'<1>' has behaviors or processors but no handler"4849/// A stream reader closed before its stream ended.50export const READER_CLOSED: Str = "the stream reader was closed"5152/// What separates problems and descriptions listed in one sentence.53export const SEPARATOR: Str = "; "54