<?php//any method can throw an errorfunction methodWithException() { throw new Exception("test exception");}