Error Handling
A class support for throwing, catching, propagating, and manipulating recoverable errors at runtime. When an optional fails, it’s useful to understand what cause the failure, so that the code can respond accordingly. Example: Reading a file from the disk may be fail in some way. File not exist Have no permission to read. File not being encoded in a compatible format. Distinguishing among these different situations allows a program to resolve some errors and to communicate to the user any errors it can’t resolve....