<?php try { $BlogPost = new BlogPost($_GET['uid']); $SingleBlogData = $BlogPost->GetData(); } catch (Exception $e) { $Notices[] = $e->getMessage(); }