Deutsche Telekom Interview Question

How to implement your own custom exception?