An exception is a runtime object or control-flow event representing an abnormal condition that can interrupt normal program execution.
An exception is an anticipated or unexpected runtime error that can interrupt a JavaScript microservice. Handling it well limits harm to users and operations. section 11.2.2
Plan responses according to the failure:
Catch anticipated exceptions with try/catch, callbacks, or promises; retry, correct, restart, report, or notify as appropriate. section 11.2.2
Treat uncaught exceptions as unexpected failures and choose whether the process should abort and restart or resume operation. section 11.2.2
Logging an uncaught exception
A process-level handler can log the exception and its stack; a stricter variant logs it and exits with failure so the process can be restarted.
How Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform covers it
How deep it goes
Explains anticipated and unexpected failures, recovery choices, try/catch, and process-level handling without detailing exception internals.
100 C++ Mistakes and How to Avoid ThemAn exception is a C++ control-flow mechanism that transfers execution to error-handling code when an exceptional condition occurs.
The Quick Python Book, Fourth EditionAn exception is an abnormal runtime event represented in Python by an object that can interrupt normal execution and be handled by exception-handling constructs.
Python How-ToException is the standard Python base class for ordinary application exceptions that should generally be catchable without intercepting system-exiting conditions.
The Art of CodeAn exception is a runtime event representing an abnormal condition that interrupts ordinary program execution and can be propagated or handled.
The Well-Grounded Rubyist, Fourth EditionAn exception is a Ruby runtime event representing an abnormal condition that interrupts ordinary program execution and can be handled by exception mechanisms.
Go in Practice, Second EditionError handling is the practice of detecting, interpreting, propagating, recovering from, or otherwise responding to program errors.
Kotlin in Action, 2EException is the Java base class for conditions that a program may catch and handle, excluding serious errors represented by Error.
Python Workout, Second EditionAn exception is a Python runtime event representing an abnormal condition that can interrupt normal execution and be handled by exception-handling constructs.
Learn Haskell by ExampleAn exception type is a Haskell type with an instance of the Exception type class whose values represent abnormal computational conditions.
Functional Programming in Scala, Second EditionAn exception is an abnormal runtime condition represented by a control-flow mechanism that can interrupt normal computation and be handled separately.
Akka in Action, Second EditionAn exception is an abnormal computational condition that interrupts normal program processing and can trigger failure handling.
ValueErrorincludes · ValueError is a built-in Python exception raised when an operation receives an argument of an appropriate type but an inappropriate value.
type errorincludes · A type error is a violation of a program’s type rules in which a value or expression has a type incompatible with an operation or context.
IndexErrorincludes · IndexError is a Python exception raised when a sequence or indexed object is accessed with an invalid index.
failurecontrasts with · A failure is an unsuccessful outcome or condition in which an operation, process, or system does not achieve an expected result.
try-catch statementimplements · A try-catch statement is a control-flow construct that executes code under exception handling and transfers control to a matching handler when an exception is raised.
This explainer was generated by Manning's knowledge graph from the text of Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform. The section links point to the parts of the book it draws on.