Loading...
Searching...
No Matches
error_policy.h File Reference

Defines custom exception types related to network policy construction and verification. More...

`#include "gridfire/exceptions/error_gridfire.h"`
Include dependency graph for error_policy.h:
This graph shows which files directly or indirectly include this file:

## Classes

class | gridfire::exceptions::PolicyError
| Base class for all exceptions related to network policy operations. More...
class | gridfire::exceptions::MissingBaseReactionError
| Exception thrown when a required reaction is missing from the underlying database (e.g., REACLIB). More...
class | gridfire::exceptions::MissingSeedSpeciesError
| Exception thrown when a required seed species is not found in the initial composition. More...
class | gridfire::exceptions::MissingKeyReactionError
| Exception thrown when a constructed network fails to include a key reaction required by the policy. More...

## Namespaces

namespace | gridfire
namespace | gridfire::exceptions
| Namespace for GridFire exception classes. All custom exceptions defined in GridFire inherit from std::exception and are organized within this namespace for clarity and modularity.

## Detailed Description

Defines custom exception types related to network policy construction and verification.

This file contains a hierarchy of exception classes that are thrown by `NetworkPolicy` implementations (see `stellar_policy.h`) and `ReactionChainPolicy` implementations (see `chains.h`) when errors occur.

The base class `PolicyError` inherits from `std::exception`, and specific error conditions are represented by derived classes.