(self, port)
Initialize the exception with the invalid port.
Initialize the exception with the invalid port.
Initialize the exception with the invalid port .
def __init__(self, port):
        """Initialize the exception with the invalid port."""
        super(InvalidPort, self).__init__(
            'The port ("{0}") is not valid.'.format(port))
def __init__ ( self , port ) : super ( InvalidPort , self ) . __init__ ( 'The port ("{0}") is not valid.' . format ( port ) )