📄 abexcept.pas
字号:
begin inherited Create(AbStrRes(AbNoSuchDirectory)); ErrorCode := AbNoSuchDirectory;end;constructor EAbInvalidSpanningThreshold.Create;begin inherited Create(AbStrRes(AbInvalidThreshold)); ErrorCode := AbInvalidThreshold;end;constructor EAbFileNotFound.Create;begin inherited Create(AbStrRes(AbFileNotFound)); ErrorCode := AbFileNotFound;end;constructor EAbNoArchive.Create;begin inherited Create(AbStrRes(AbNoArchive)); ErrorCode := AbNoArchive;end;constructor EAbUserAbort.Create;begin inherited Create(AbStrRes(AbUserAbort)); ErrorCode := AbUserAbort;end;constructor EAbZipBadSpanStream.Create;begin inherited Create(AbStrRes(AbBadSpanStream)); ErrorCode := AbBadSpanStream;end;constructor EAbZipBadCRC.Create;begin inherited Create(AbStrRes(AbZipBadCRC)); ErrorCode := AbZipBadCRC;end;constructor EAbZipInflateBlock.Create;begin inherited Create(AbStrRes(AbInflateBlockError)); ErrorCode := AbInflateBlockError;end;constructor EAbZipInvalid.Create;begin inherited Create(AbStrRes(AbErrZipInvalid)); ErrorCode := AbErrZipInvalid;end;constructor EAbInvalidIndex.Create;begin inherited Create(AbStrRes(AbInvalidIndex)); ErrorCode := AbInvalidIndex;end;constructor EAbZipInvalidFactor.Create;begin inherited Create(AbStrRes(AbInvalidFactor)); ErrorCode := AbInvalidFactor;end;constructor EAbZipInvalidLFH.Create;begin inherited Create(AbStrRes(AbInvalidLFH)); ErrorCode := AbInvalidLFH;end;constructor EAbZipInvalidMethod.Create;begin inherited Create(AbStrRes(AbUnknownCompressionMethod)); ErrorCode := AbUnknownCompressionMethod;end;constructor EAbZipInvalidPassword.Create;begin inherited Create(AbStrRes(AbInvalidPassword)); ErrorCode := AbInvalidPassword;end;constructor EAbZipInvalidStub.Create;begin inherited Create(AbStrRes(AbZipBadStub)); ErrorCode := AbZipBadStub;end;constructor EAbZipNoExtraction.Create;begin inherited Create(AbStrRes(AbNoExtractionMethod)); ErrorCode := AbNoExtractionMethod;end;constructor EAbZipNoInsertion.Create;begin inherited Create(AbStrRes(AbNoInsertionMethod)); ErrorCode := AbNoInsertionMethod;end;constructor EAbZipSpanOverwrite.Create;begin inherited Create(AbStrRes(AbNoOverwriteSpanStream)); ErrorCode := AbNoOverwriteSpanStream;end;constructor EAbZipStreamFull.Create;begin inherited Create(AbStrRes(AbStreamFull)); ErrorCode := AbStreamFull;end;constructor EAbZipTruncate.Create;begin inherited Create(AbStrRes(AbTruncateError)); ErrorCode := AbTruncateError;end;constructor EAbZipUnsupported.Create;begin inherited Create(AbStrRes(AbUnsupportedCompressionMethod)); ErrorCode := AbUnsupportedCompressionMethod;end;constructor EAbZipVersion.Create;begin inherited Create(AbStrRes(AbZipVersionNeeded)); ErrorCode := AbZipVersionNeeded;end;constructor EAbReadError.Create;begin inherited Create(AbStrRes(AbReadError)); ErrorCode := AbReadError;end;constructor EAbVMSReadTooManyBytes.Create( Count : Integer; Dummy : Word );begin inherited Create(Format(AbStrRes(AbVMSReadTooManyBytes), [Count])); ErrorCode := AbVMSReadTooManyBytes;end;constructor EAbVMSInvalidOrigin.Create( Value : Integer; Dummy : Word );begin inherited Create(Format(AbStrRes(AbVMSInvalidOrigin), [Value])); ErrorCode := AbVMSInvalidOrigin;end;constructor EAbBBSReadTooManyBytes.Create(Count : Integer; Dummy : Word);begin inherited Create(Format(AbStrRes(AbBBSReadTooManyBytes), [Count])); ErrorCode := AbBBSReadTooManyBytes;end;constructor EAbBBSSeekOutsideBuffer.Create;begin inherited Create(AbStrRes(AbBBSSeekOutsideBuffer)); ErrorCode := AbBBSSeekOutsideBuffer;end;constructor EAbBBSInvalidOrigin.Create;begin inherited Create(AbStrRes(AbBBSInvalidOrigin)); ErrorCode := AbBBSInvalidOrigin;end;constructor EAbBBSWriteTooManyBytes.Create(Count : Integer; Dummy : Word);begin inherited Create(Format(AbStrRes(AbBBSWriteTooManyBytes), [Count])); ErrorCode := AbBBSWriteTooManyBytes;end;constructor EAbVMSErrorOpenSwap.Create( const Value : string );begin inherited Create(Format(AbStrRes(AbVMSErrorOpenSwap), [Value])); ErrorCode := AbVMSErrorOpenSwap;end;constructor EAbVMSSeekFail.Create( const Value : string );begin inherited Create(Format(AbStrRes(AbVMSSeekFail), [Value])); ErrorCode := AbVMSSeekFail;end;constructor EAbVMSReadFail.Create( Count : Integer; const Value : string );begin inherited Create(Format(AbStrRes(AbVMSReadFail), [Count, Value])); ErrorCode := AbVMSReadFail;end;constructor EAbVMSWriteFail.Create( Count : Integer; const Value : string );begin inherited Create(Format(AbStrRes(AbVMSWriteFail), [Count, Value])); ErrorCode := AbVMSWriteFail;end;constructor EAbVMSWriteTooManyBytes.Create( Count : Integer; Dummy : Word );begin inherited Create(Format(AbStrRes(AbVMSWriteTooManyBytes), [Count])); ErrorCode := AbVMSWriteTooManyBytes;end;constructor EAbSWSNotEndofStream.Create;begin inherited Create(AbStrRes(AbSWSNotEndofStream)); ErrorCode := AbSWSNotEndofStream;end;constructor EAbSWSSeekFailed.Create;begin inherited Create(AbStrRes(AbSWSSeekFailed)); ErrorCode := AbSWSSeekFailed;end;constructor EAbSWSWriteFailed.Create;begin inherited Create(AbStrRes(AbSWSWriteFailed)); ErrorCode := AbSWSWriteFailed;end;constructor EAbSWSInvalidOrigin.Create;begin inherited Create(AbStrRes(AbSWSInvalidOrigin)); ErrorCode := AbSWSInvalidOrigin;end;constructor EAbSWSInvalidNewOrigin.Create;begin inherited Create(AbStrRes(AbSWSInvalidNewOrigin)); ErrorCode := AbSWSInvalidNewOrigin;end;constructor EAbFCIFileOpenError.Create;begin inherited Create(AbStrRes(AbFCIFileOpenError)); ErrorCode := AbFCIFileOpenError;end;constructor EAbNoCabinetDll.Create;begin inherited Create(AbStrRes(AbNoCabinetDllError)); ErrorCode := AbNoCabinetDllError;end;constructor EAbFCIFileReadError.Create;begin inherited Create(AbStrRes(AbFCIFileReadError)); ErrorCode := AbFCIFileReadError;end;constructor EAbFCIFileWriteError.Create;begin inherited Create(AbStrRes(AbFCIFileWriteError)); ErrorCode := AbFCIFileWriteError;end;constructor EAbFCIFileCloseError.Create;begin inherited Create(AbStrRes(AbFCIFileCloseError)); ErrorCode := AbFCIFileCloseError;end;constructor EAbFCIFileSeekError.Create;begin inherited Create(AbStrRes(AbFCIFileSeekError)); ErrorCode := AbFCIFileSeekError;end;constructor EAbFCIFileDeleteError.Create;begin inherited Create(AbStrRes(AbFCIFileDeleteError)); ErrorCode := AbFCIFileDeleteError;end;constructor EAbFCIAddFileError.Create;begin inherited Create(AbStrRes(AbFCIAddFileError)); ErrorCode := AbFCIAddFileError;end;constructor EAbFCICreateError.Create;begin inherited Create(AbStrRes(AbFCICreateError)); ErrorCode := AbFCICreateError;end;constructor EAbFCIFlushCabinetError.Create;begin inherited Create(AbStrRes(AbFCIFlushCabinetError)); ErrorCode := AbFCIFlushCabinetError;end;constructor EAbFCIFlushFolderError.Create;begin inherited Create(AbStrRes(AbFCIFlushFolderError)); ErrorCode := AbFCIFlushFolderError;end;constructor EAbFDICopyError.Create;begin inherited Create(AbStrRes(AbFDICopyError)); ErrorCode := AbFDICopyError;end;constructor EAbFDICreateError.Create;begin inherited Create(AbStrRes(AbFDICreateError)); ErrorCode := AbFDICreateError;end;constructor EAbInvalidCabTemplate.Create;begin inherited Create(AbStrRes(AbInvalidCabTemplate)); ErrorCode := AbInvalidCabTemplate;end;constructor EAbInvalidCabFile.Create;begin inherited Create(AbStrRes(AbInvalidCabFile)); ErrorCode := AbInvalidCabFile;end;procedure AbConvertException( const E : Exception; var eClass : TAbErrorClass; var eErrorCode : Integer );begin eClass := ecOther; eErrorCode := 0; if E is EAbException then begin eClass := ecAbbrevia; eErrorCode := (E as EAbException).ErrorCode; end else if E is EInOutError then begin eClass := ecInOutError; eErrorCode := (E as EInOutError).ErrorCode; end else if E is EFilerError then eClass := ecFilerError else if E is EFOpenError then eClass := ecFileOpenError else if E is EFCreateError then eClass := ecFileCreateError;end;{ EAbUnhandledType }constructor EAbUnhandledType.Create;begin inherited Create(AbStrRes(AbUnhandledFileType)); ErrorCode := AbUnhandledFileType;end;{ EAbGzipBadCRC }constructor EAbGzipBadCRC.Create;begin inherited Create(AbStrRes(AbGzipBadCRC)); ErrorCode := AbGzipBadCRC;end;{ EAbGzipBadFileSize }constructor EAbGzipBadFileSize.Create;begin inherited Create(AbStrRes(AbGzipBadFileSize)); ErrorCode := AbGzipBadFileSize;end;{ EAbGzipInvalid }constructor EAbGzipInvalid.Create;begin inherited Create(AbStrRes(AbSpanningNotSupported)); ErrorCode := AbSpanningNotSupported;end;{ EAbSpanningNotSupported }constructor EAbSpanningNotSupported.Create;begin inherited Create(AbStrRes(AbSpanningNotSupported)); ErrorCode := AbSpanningNotSupported;end;end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -