Throw
// throws or raises and exception
throw IntegerDivisionByZeroException();
// You can also throw arbitrary objects
throw "Product out of stock!";
Comments
// throws or raises and exception
throw IntegerDivisionByZeroException();
// You can also throw arbitrary objects
throw "Product out of stock!";