RarException 클래스
(PECL rar >= 2.0.0)
소개
이 클래스는 두 가지 목적을 수행합니다. RAR 확장 기능 및 메서드에서 throw되는 예외 유형이며 정적 메서드를 통해 확장의 오류 동작을 쿼리 및 정의할 수 있습니다.
다음 오류 코드가 사용됩니다.
- -1 - error outside UnRAR library
- 11 - insufficient memory
- 12 - bad data
- 13 - bad archive
- 14 - unknown format
- 15 - file open error
- 16 - file create error
- 17 - file close error
- 18 - read error
- 19 - write error
- 20 - buffer too small
- 21 - unknown RAR error
- 2 - password required but not given
클래스 개요
final class RarException extends Exception { /* Methods */ public static isUsingExceptions(): bool public static setUsingExceptions(bool $using_exceptions): void /* Inherited methods */ final public Exception::getMessage(): string final public Exception::getPrevious(): ?Throwable final public Exception::getCode(): int final public Exception::getFile(): string final public Exception::getLine(): int final public Exception::getTrace(): array final public Exception::getTraceAsString(): string public Exception::__toString(): string private Exception::__clone(): void }
목차
- RarException::isUsingExceptions — 예외가 있는 오류 처리가 사용 중인지 확인
- RarException::setUsingExceptions — 예외가 있는 오류 처리 활성화 및 비활성화