Class ConnectionError


  • public final class ConnectionError
    extends Object
    The ConnectionError model.
    • Constructor Detail

      • ConnectionError

        public ConnectionError()
    • Method Detail

      • connectionState

        public ConnectionState connectionState()
        Get the connectionState property: The kind of connection error that occurred.
        Returns:
        the connectionState value.
      • withConnectionState

        public ConnectionError withConnectionState​(ConnectionState connectionState)
        Set the connectionState property: The kind of connection error that occurred.
        Parameters:
        connectionState - the connectionState value to set.
        Returns:
        the ConnectionError object itself.
      • iPFrom

        public String iPFrom()
        Get the iPFrom property: The IP of host that originated the failed connection.
        Returns:
        the iPFrom value.
      • withIPFrom

        public ConnectionError withIPFrom​(String iPFrom)
        Set the iPFrom property: The IP of host that originated the failed connection.
        Parameters:
        iPFrom - the iPFrom value to set.
        Returns:
        the ConnectionError object itself.
      • iPTo

        public String iPTo()
        Get the iPTo property: The IP that the connection attempted to reach.
        Returns:
        the iPTo value.
      • withIPTo

        public ConnectionError withIPTo​(String iPTo)
        Set the iPTo property: The IP that the connection attempted to reach.
        Parameters:
        iPTo - the iPTo value to set.
        Returns:
        the ConnectionError object itself.
      • port

        public Integer port()
        Get the port property: The TCP port the connection was attempted on.
        Returns:
        the port value.
      • withPort

        public ConnectionError withPort​(Integer port)
        Set the port property: The TCP port the connection was attempted on.
        Parameters:
        port - the port value to set.
        Returns:
        the ConnectionError object itself.
      • exception

        public String exception()
        Get the exception property: Detailed error message about the failed connection.
        Returns:
        the exception value.
      • withException

        public ConnectionError withException​(String exception)
        Set the exception property: Detailed error message about the failed connection.
        Parameters:
        exception - the exception value to set.
        Returns:
        the ConnectionError object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.