PHP 8.4.0 RC4 available for testing

The LogicException class

(PHP 5 >= 5.1.0, PHP 7, PHP 8)

Вступ

Exception that represents error in the program logic. This kind of exception should lead directly to a fix in your code.

Короткий огляд класу

class LogicException extends Exception {
/* Успадковані властивості */
protected string $message = "";
private string $string = "";
protected int $code;
protected string $file = "";
protected int $line;
private array $trace = [];
private ?Throwable $previous = null;
/* Успадковані методи */
public Exception::__construct(string $message = "", int $code = 0, ?Throwable $previous = null)
final public Exception::getCode(): int
final public Exception::getFile(): string
final public Exception::getLine(): int
final public Exception::getTrace(): array
}
add a note

User Contributed Notes 1 note

up
24
Dawid Krysiak
13 years ago
Direct known subclasses:
BadFunctionCallException, DomainException, InvalidArgumentException, LengthException, OutOfRangeException
To Top