Option::getOrThrow( Exception $ex )

Returns the value if available, or throws the passed exception.


Parameters

$ex

(Exception) (Required)


Return

(mixed)


Source

File: vendor/phpoption/phpoption/src/PhpOption/Option.php

    abstract public function getOrThrow(\Exception $ex);