* 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; /** * Initializes a new instance of the object. * * @param mixed $id Unique identifier for this exception (default: null) * @param string $message Exception message (default: "") * @param int $code Exception code (default: 0) * @param \Throwable|null $previous The previous exception (default: null) * * @return void */ 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->id; } }