olderDbExists = $olderDbExists; parent::__construct($message, $code, $previous); } public static function create(bool $olderDbExists, ?Throwable $prev = null): self { return new self( $olderDbExists, 'An error occurred while updating geolocation database, and an older version could not be found', 0, $prev ); } public function olderDbExists(): bool { return $this->olderDbExists; } }