3.5. PortException

Exception class that is thrown when an error occurs.

  • Constructor

    Name

    Contents

    PortException

    Create PortException object.

  • Property

    Name

    Contents

    ErrorCode

    Gets the error code.

    IsPortInUseFailure

    Gets the value which indicates whether or not the port is in use by another process.

3.5.1. PortException

Create PortException object.

  • Syntax

    public PortException(string message)
    public PortException(bool _isPortInUseFailure, string message)
    
  • Parameter

    Name

    Contents

    Type

    message

    Exception message

    string

    _isPortInUseFailure

    Error which occurred because the port is in use by another process.

    bool

  • Return value

    Contents

    Type

    PortException object

    PortException

3.5.2. ErrorCode

added in version 2.6.0

Gets the error code.

  • Declaration

    int ErrorCode{ get; set; }
    
  • Parameter

    None

  • Return value

    Contents

    Type

    Error code

    int

3.5.3. IsPortInUseFailure

Gets the value which indicates whether or not the port is in use by another process.

  • Syntax

    bool IsPortInUseFailure { get; set; }
    
  • Value

    Contents

    Type

    Value which indicates whether or not the port is in use by another process.

    bool