What does "fatal error: uncaught exception" mean in php?

Example:

throw new Exception("This is an exception!");
This error happens when an exception is thrown but not caught in a try/catch block.

Solution:

try {
    throw new Exception("This is an exception!");
} catch (Exception $e) {
    echo "Caught exception: " . $e->getMessage();
}

Beginner's Guide to PHP