Computer Architecture What is a phantom exception Describe u
Computer Architecture
What is a phantom exception? Describe using a code example.
Solution
What is a phantom exception?
Answer:-
Exceptions are one of the fastest and most scalable ways of handling failures and errors.
Unification of exception handling :
Raising and handling exception becomes the same for all MonadThrow and MonadCatch instances. This includes code that uses exceptions in IO monad and ErrorT style error handling.
Avoiding fail :
Sometimes Monad(fail) is used to generalize exception handling.
Examples:
