Create a custom exception class

Hello, is it possible to create a custom exception class?
I don’t mean to create a custom exception message, I mean a custom class that inherits from other exception type, so in the Throw activity I can put something like:

new MyPersonalException("some message")

And also be able to use it in the try catch activity.

in general you could do

create the custom exception class
deploy it by a nuget package
reference it from the package manager