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.

NameDescription
EnvironmentExceptionException for generic issues in a Gymnasium (or similar) wrapper around Schola.
MissingMethodErrorError raised when the server reports the RPC or Schola endpoint is not implemented.
NoAgentsExceptionException raised when an environment in the Schola definition has no registered agents.
NoEnvironmentsExceptionException raised when Unreal returns no environment definitions after a successful connection.
NoServerErrorError raised when the Schola gRPC server is not reachable (Unreal not running or not in play).
ScholaErrorContextManagerContext manager / decorator that maps known grpc.RpcError values to Schola exceptions.
ScholaExceptionBase class for all exceptions in Schola.
UnrealCrashedErrorError raised when the Unreal session appears to have stopped or torn down the stream.
WrappedGrpcExceptionBase class for all Schola exceptions that wrap gRPC errors, to add more information.