Skip to content

Error Manager

Exceptions for making gRPC errors more interpretable, and a context manager that automatically converts gRPC errors into our custom exceptions.

Name Description
EnvironmentException Exception for generic issues in a Gymnasium (or similar) wrapper around Schola.
MissingMethodError Error raised when the server reports the RPC or Schola endpoint is not implemented.
NoAgentsException Exception raised when an environment in the Schola definition has no registered agents.
NoEnvironmentsException Exception raised when Unreal returns no environment definitions after a successful connection.
NoServerError Error raised when the Schola gRPC server is not reachable (Unreal not running or not in play).
ScholaErrorContextManager Context manager / decorator that maps known grpc.RpcError values to Schola exceptions.
ScholaException Base class for all exceptions in Schola.
UnrealCrashedError Error raised when the Unreal session appears to have stopped or torn down the stream.
WrappedGrpcException Base class for all Schola exceptions that wrap gRPC errors, to add more information.