94
F# User Defined Exceptions
In F#, you can create user defined exception. It provides flexibility to define custom exceptions according to requirement. Let’s see an example.
Output:
Sorry, Age must be greater than 18 Rest of the code