⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 abexcept.pas

📁 Lazarus is a free and open source development tool for the FreePascal Compiler. The purpose of the p
💻 PAS
📖 第 1 页 / 共 2 页
字号:
(* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is TurboPower Abbrevia * * The Initial Developer of the Original Code is * TurboPower Software * * Portions created by the Initial Developer are Copyright (C) 1997-2002 * the Initial Developer. All Rights Reserved. * * Contributor(s): * * ***** END LICENSE BLOCK ***** *){*********************************************************}{* ABBREVIA: AbExcept.pas 3.05                           *}{*********************************************************}{* ABBREVIA: Exception classes                           *}{*********************************************************}{$I AbDefine.inc}unit AbExcept;interfaceuses  SysUtils,  AbUtils;type  EAbException = class( Exception )  public    ErrorCode : Integer;  end;  EAbArchiveBusy = class( EAbException )  public    constructor Create;  end;  EAbBadStream = class( EAbException )  public    constructor Create;  end;  EAbDuplicateName = class( EAbException )  public    constructor Create;  end;  EAbFileNotFound = class( EAbException )  public    constructor Create;  end;  EAbNoArchive = class( EAbException )  public    constructor Create;  end;  EAbUserAbort = class( EAbException )  public    constructor Create;  end;  EAbNoSuchDirectory = class( EAbException )  public    constructor Create;  end;  EAbUnhandledType = class( EAbException )  public    constructor Create;  end;  EAbSpanningNotSupported = class (EAbException)  public    constructor Create;  end;  EAbInvalidSpanningThreshold = class ( EAbException )  public    constructor Create;  end;  EAbZipException = class( EAbException ); {Zip exception}  EAbCabException = class( EAbException ); {Cab exception}  EAbTarException = class( EAbException ); {Tar Exception}  EAbGzipException = class( EAbException); {GZip exception }  EAbZipBadSpanStream = class( EAbZipException )  public    constructor Create;  end;  EAbZipBadCRC = class( EAbZipException )  public    constructor Create;  end;  EAbZipInflateBlock = class( EAbZipException )  public    constructor Create;  end;  EAbZipInvalid = class( EAbZipException )  public    constructor Create;  end;  EAbInvalidIndex = class( EAbZipException )  public    constructor Create;  end;  EAbZipInvalidFactor = class( EAbZipException )  public    constructor Create;  end;  EAbZipInvalidLFH = class( EAbZipException )  public    constructor Create;  end;  EAbZipInvalidMethod = class( EAbZipException )  public    constructor Create;  end;  EAbZipInvalidPassword = class( EAbZipException )  public    constructor Create;  end;  EAbZipInvalidStub= class( EAbZipException )  public    constructor Create;  end;  EAbZipNoExtraction = class( EAbZipException )  public    constructor Create;  end;  EAbZipNoInsertion = class( EAbZipException )  public    constructor Create;  end;  EAbZipSpanOverwrite= class( EAbZipException )  public    constructor Create;  end;  EAbZipStreamFull = class( EAbZipException )  public    constructor Create;  end;  EAbZipTruncate = class( EAbZipException )  public    constructor Create;  end;  EAbZipUnsupported = class( EAbZipException )  public    constructor Create;  end;  EAbZipVersion = class( EAbZipException )  public    constructor Create;  end;  EAbReadError = class( EAbZipException )  public    constructor Create;  end;  EAbGzipBadCRC = class( EAbGZipException )  public    constructor Create;  end;  EAbGzipBadFileSize = class( EAbGZipException )  public    constructor Create;  end;  EAbGzipInvalid = class( EAbGZipException )  public    constructor Create;  end;  EAbVMSReadTooManyBytes = class( EAbZipException )  public    constructor Create( Count : Integer; Dummy : Word );  end;  EAbVMSInvalidOrigin = class( EAbZipException )  public    constructor Create( Value : Integer; Dummy : Word );  end;  EAbVMSErrorOpenSwap = class( EAbZipException )  public    constructor Create( const Value : string );  end;  EAbVMSSeekFail = class( EAbZipException )  public    constructor Create( const Value : string );  end;  EAbVMSReadFail = class( EAbZipException )  public    constructor Create( Count : Integer; const Value : string );  end;  EAbVMSWriteFail = class( EAbZipException )  public    constructor Create( Count : Integer; const Value : string );  end;  EAbVMSWriteTooManyBytes = class( EAbZipException )  public    constructor Create( Count : Integer; Dummy : Word );  end;  EAbBBSReadTooManyBytes = class( EAbZipException )  public    constructor Create(Count : Integer; Dummy : Word);  end;  EAbBBSSeekOutsideBuffer = class( EAbZipException )  public    constructor Create;  end;  EAbBBSInvalidOrigin = class( EAbZipException )  public    constructor Create;  end;  EAbBBSWriteTooManyBytes = class( EAbZipException )  public    constructor Create(Count : Integer ; Dummy : Word);  end;  EAbSWSNotEndofStream = class( EAbZipException )  public    constructor Create;  end;  EAbSWSSeekFailed = class( EAbZipException )  public    constructor Create;  end;  EAbSWSWriteFailed = class( EAbZipException )  public    constructor Create;  end;  EAbSWSInvalidOrigin = class( EAbZipException )  public    constructor Create;  end;  EAbSWSInvalidNewOrigin = class( EAbZipException )  public    constructor Create;  end;  EAbNoCabinetDll = class( EAbCabException )  public    constructor Create;  end;  EAbFCIFileOpenError = class( EAbCabException )  public    constructor Create;  end;  EAbFCIFileReadError = class( EAbCabException )  public    constructor Create;  end;  EAbFCIFileWriteError = class( EAbCabException )  public    constructor Create;  end;  EAbFCIFileCloseError = class( EAbCabException )  public    constructor Create;  end;  EAbFCIFileSeekError = class( EAbCabException )  public    constructor Create;  end;  EAbFCIFileDeleteError = class( EAbCabException )  public    constructor Create;  end;  EAbFCIAddFileError = class( EAbCabException )  public    constructor Create;  end;  EAbFCICreateError = class( EAbCabException )  public    constructor Create;  end;  EAbFCIFlushCabinetError = class( EAbCabException )  public    constructor Create;  end;  EAbFCIFlushFolderError = class( EAbCabException )  public    constructor Create;  end;  EAbFDICopyError = class( EAbCabException )  public    constructor Create;  end;  EAbFDICreateError = class( EAbCabException )  public    constructor Create;  end;  EAbInvalidCabTemplate = class( EAbCabException )  public    constructor Create;  end;  EAbInvalidCabFile = class( EAbCabException )  public    constructor Create;  end;  procedure AbConvertException( const E : Exception;                                var eClass : TAbErrorClass;                                var eErrorCode : Integer );implementationuses  Classes,  AbConst;constructor EAbArchiveBusy.Create;begin  inherited Create(AbStrRes(AbArchiveBusy));  ErrorCode := AbArchiveBusy;end;constructor EAbBadStream.Create;begin  inherited Create(AbStrRes(AbBadStreamType));  ErrorCode := AbBadStreamType;end;constructor EAbDuplicateName.Create;begin  inherited Create(AbStrRes(AbDuplicateName));  ErrorCode := AbDuplicateName;end;constructor EAbNoSuchDirectory.Create;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -