Initializes a new instance of the EndOfStreamException class with a specified error message and a reference to the inner exception that is the cause of this exception.
Initializes a new instance of the ExternalException class with a specified error message and a reference to the inner exception that is the cause of this exception.