This class is useless IMO. It does nothing.

If you really want new class, you should create new exception class which contains that message.