Create custom exception

Report a typo

Create a custom exception class named ValueIsNegative. You can either use a constructor without any parameters or a constructor with the message parameter.

Write a program in Kotlin
// make your code here
___

Create a free account to access the full topic