Custom Exception Title

com_panel_pages_s

Exception: Exception

Can I change this text/title with something like that?

throw new CustomException("My Title", "My error message");