mockException(1); } catch (\Exception $ex) { return $ex; } return null; break; case 4: throw new Exception('Error'); default: return $this->mockException($depth + 1); } } }