Pudu programming language
Menu
Package

@chrismichaelps / pudu-lang-resilience

Resilience pipelines for Pudu: retry, circuit breaker, timeout, fallback, hedging, rate limiting, and chaos injection

0.1.0Apache-2.01

InstallClose

Messages.pudu

Pudu42 lines1.7 KB

GitHub ↗
1/** @Constants.Messages.Module — every sentence the package reports */2module PuduLangResilience.Constants.Messages34/// A failure raised by the callback; `<1>` is the error.5export const RAISED: Str = "The operation failed: <1>"67/// A timeout; `<1>` is the timeout in milliseconds.8export const TIMED_OUT: Str = "The operation did not complete within <1> ms."910/// An open circuit; `<1>` is the wait in milliseconds before it may be tried again.11export const BROKEN_CIRCUIT: Str = "The circuit is open; it may be tried again in <1> ms."1213/// An isolated circuit.14export const ISOLATED_CIRCUIT: Str = "The circuit is isolated and admits no execution."1516/// A rate limiter rejection with a known wait; `<1>` is the wait in milliseconds.17export const RATE_LIMITED_AFTER: Str = "The rate limiter rejected the execution; retry after <1> ms."1819/// A rate limiter rejection without a known wait.20export const RATE_LIMITED: Str = "The rate limiter rejected the execution."2122/// A cancellation; `<1>` is its reason.23export const CANCELLED: Str = "The operation was cancelled: <1>"2425/// A callback that stopped its thread; `<1>` is what it said.26export const CRASHED: Str = "The operation stopped its thread: <1>"2728/// An outcome holding a value; `<1>` is the value.29export const SUCCEEDED: Str = "Ok(<1>)"3031/// A pipeline refused at build time; `<1>` is its problems.32export const PIPELINE_INVALID: Str = "The pipeline is invalid: <1>"3334/// A registry key without a builder; `<1>` is the key.35export const REGISTRY_NOT_FOUND: Str = "No pipeline builder is registered for '<1>'."3637/// A registry key whose pipeline is refused; `<1>` is the key and `<2>` its problems.38export const REGISTRY_INVALID: Str = "The pipeline for '<1>' is invalid: <2>"3940/// What separates problems listed in one sentence.41export const PROBLEM_SEPARATOR: Str = "; "42