* Portions created by the Initial Developer are Copyright (C) 2008-2025 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Mark J Crane * Tim Fry */ /** * General socket exception class * * @author Tim Fry */ class socket_exception extends \Exception { public $id; public function __construct($id = null, string $message = "", int $code = 0, ?\Throwable $previous = null) { $this->id = $id; return parent::__construct($message, $code, $previous); } public function getResourceId() { return $this->resource_id; } }