Custom exceptions

i want to create personal custom exception with a view

i tried to google, but i need some tips…

Create a new exception class and then use it




class MyException extends exception 

{


// code here


}




throw new MyException();