Skip to content

exceptions

drunc.session_manager.exceptions

Exceptions for the drunc session manager.

Classes

ChangeMeException(txt, grpc_error_code=code_pb2.INTERNAL, *args, **kwargs)

Bases: DruncCommandException

TODO: Change this exception to something more useful.

Source code in drunc/exceptions.py
def __init__(self, txt, grpc_error_code=code_pb2.INTERNAL, *args, **kwargs):
    self.grpc_error_code = grpc_error_code
    super().__init__(txt, *args, **kwargs)