class_docstr: Error indicating that a port is already in use in a `RuntimeGroup` or on the local machine.
docstr: Constructor.
  
  Args:
      port (int): [description]
      group (Optional[Any], optional): [description]. Defaults to None.
      runtime (Optional[Any], optional): [description]. Defaults to None.
docstr_tok: ["Constructor",".","Args",":","port","(","int",")",":","[","description","]","group","(","Optional","[","Any","]",",","optional",")",":","[","description","]",".","Defaults","to","None",".","runtime","(","Optional","[","Any","]",",","optional",")",":","[","description","]",".","Defaults","to","None","."]
code: def __init__(
      self,
      port: int,
      group: Optional[
          Any
      ] = None,  # Needs to be any due to a circular dependency
      runtime: Optional[
          Any
      ] = None,  # Needs to be any due to a circular dependency
  ) -> None:
      """Constructor.
  
      Args:
          port (int): [description]
          group (Optional[Any], optional): [description]. Defaults to None.
          runtime (Optional[Any], optional): [description]. Defaults to None.
      """
      self.port = port
      self.group = group
      self.runtime = runtime
  
      if group:
          msg = "Port " + str(
              port
          ) + " is already in use in at least one `Runtime` in the group or on the local " "machine. Group: " + str(
              group
          )
      elif runtime:
          msg = (
              "Port "
              + str(port)
              + " is already in use on Runtime "
              + runtime.host
              + ". Runtime: "
              + str(runtime)
          )
      else:
          msg = "Port " + str(port) + " is already in use."
  
      super().__init__(msg)
  
imports: from typing import Any, Optional
label_desc: Use image node_id 1 to create a new PortInUseError object from inherited base classes: LazyclusterError with example: obj = PortInUseError(port, group, runtime)