getOrThrow
Returns the encapsulated value if this instance represents success or throws an exception if it is closed or failed.
Returns the encapsulated value if this instance represents success or throws an exception if it is closed or failed.