Fixed bug, replaced Exception with \Exception