Initializes a new instance of the TerminalEmulationException class.
The ctor constructor sets the ErrorCode property to the last socket error that occurred. For more information about the errors that may occur, refer to the Terminal.ErrorCode enumeration.