class_docstr: Base class for all PySyft exceptions.
code: def __init__(
      self, message: str, roles: Optional[List[ServiceRole]] = None
  ):
      super().__init__(message)
      self.message = message
      self.roles = roles if roles else [ServiceRole.ADMIN]
  
file_path: PySyft/packages/syft/src/syft/exceptions/exception.py
imports: from typing import List
  from typing import Optional
  from ..service.context import NodeServiceContext
  from ..service.response import SyftError
  from ..service.user.user_roles import ServiceRole
label_desc: Use image node_id 1 to create a new PySyftException object from inherited base classes: Exception with example: obj = PySyftException(message, roles)