In some code, we have various exceptions during its execution. I want to replace the exceptions Optional; but can optionally inform users only that the value does not exist. I need more information about the various problems that occur at runtime. I need this information mainly for error messages and getting the correct error code.
How can I use it Optionalin this case?
source
share