EZDatabaseError error codes.
Posted: 08.09.2015, 16:02
Hello,
I would like to use the EZDatabaseError::ErrorCode property to implement different application messages according to the returned value of it. May I presume that the ErrorCode property assumes the value raised by database client software ?
Is there any list of values which can be used as a reference for ErrorCode ?
The code below I have copied from the file ZAbstractRODataset.pas :
The class EDatabaseError from which EZDatabaseError derives has no the ErrorCode property.
Thank you very much.
I would like to use the EZDatabaseError::ErrorCode property to implement different application messages according to the returned value of it. May I presume that the ErrorCode property assumes the value raised by database client software ?
Is there any list of values which can be used as a reference for ErrorCode ?
The code below I have copied from the file ZAbstractRODataset.pas :
Code: Select all
{** Implements a Zeos specific database exception with SQL error code. }
EZDatabaseError = class(EDatabaseError)
private
FErrorCode: Integer;
FStatusCode: String;
procedure SetStatusCode(const Value: String);
public
constructor Create(const Msg: string);
constructor CreateFromException(E: EZSQLThrowable);
property ErrorCode: Integer read FErrorCode write FErrorCode;
property StatusCode: String read FStatusCode write SetStatusCode;
end;
Thank you very much.