[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Objects' (#rtl)

TStream.Error

Set stream status

Declaration

Source position: objects.pp line 293

procedure TStream.Error(

  Code: Integer;

  Info: Integer

); virtual;

Description

Errorsets the stream's status to Codeand ErrorInfoto Info. If the StreamErrorprocedural variable is set, Errorexecutes it, passing Selfas an argument.

This method should not be called directly from a program. It is intended to be used in descendent objects.

Errors

None.