abstract class Pegasus::Error::ErrorContext
- Pegasus::Error::ErrorContext
- Reference
- Object
Overview
A context for the custom exception class. The idea with context is that it can be attached to exceptions and shown as extra information to the user. It's attached rather than added via subclassing because some parts of Pegasus code need to be able to modify the context, replacing it with more thorough / clear info. Instead of straight up copying the exception and changing the field, (as well as the way it's displayed to the user), client code can remove one bit of context and replace it with a better one.