✨ ARCANUM RUNE DIFFICULTY: Adept Behavioral

The Chain of Abends

Pass an abend code through various handlers.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Chain of Responsibility
ARCANUM SCHOOL: Evocation // Channelling
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
/* ooRexx Chain of Responsibility */
::class Handler abstract
::attribute nextHandler
::method setNext
  use arg handler
  self~nextHandler = handler
::method handleRequest abstract

::class S0C4Handler subclass Handler
::method handleRequest
  use arg code
  if code = 'S0C4' then say "Handling memory protection exception."
  else if self~nextHandler \= .nil then self~nextHandler~handleRequest(code)

When an ABEND occurs, the Chain of Responsibility directs the erratic energies through multiple wards until one is capable of safely grounding the exception.

Runic Tags: #chain-of-responsibility #abend #rexx