Link Search Menu Expand Document

Errors

DeLaFits Exceptions inherit from the EFitsException class. Each exception object has a Topic and Code that uniquely identify the error.

uses
  ..., DeLaFitsCommon, ...;

try
  ...
except
  on E: EFitsException do
    case E.Code of
      ERROR1: ...;
      ERROR2: ...;
      ...
    end;
end;

The DeLaFits error message has the prefix “$DELAFITS-TOPIC-CODE”.

$DELAFITS-CONTAINER-6702, Class "TFitsImage" cannot work with HDU extension "TABLE"

Each DeLaFits unit has a unique error code range of up to one thousand values:

See Also