Class TryDemo
java.lang.Object
com.dudko.tools.safejavastreams.demo.core.TryDemo
Example of using Try
Try is a container that can contain either a Success or a Failure. This avoids using exceptions to handle errors.
In this example, we create several Try objects and demonstrate their use.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TryDemo
public TryDemo()
-
-
Method Details
-
main
-
getUserToken
-