• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

Why isn't my PHP exception working?

phpexception-handling


PHP Snippet 1:

<?php

namespace Foo\Bar;

try {
   // ...
} catch (Exception $e) { // This is trying to catch Foo/Bar/Exception
   // ...
}

PHP Snippet 2:

try {
    // ...
} catch (\Exception $e) {
    // ...
}

Related Snippets

WHERE IN array binding in DB::raw laravel 5.4

How to pass security cloudflare server with php curl

Can't exclude directories from .htaccess mobile redirect?

PHP: How to solve ob_start() in combination imagepng() issue?

How can I format this number correctly using PHP?

How to unlink image from folder?

Laravel Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) on a sub query with "ROW_NUMBER() OVER PARTITION"

could not find driver Debian SQL Server PHP

advanced custom fields wordpress custom class

shell errors running php exec

Show Custom Data in Woocommerce Order Details Admin Area

Add restriction to WooCommerce coupons by allowed user ID

dockerizing Laravel + vue

Error Class "LaravelFortifyFeatures" not found

onKeyUp event calculation not working on the following rows from php generated forms except the first one

About Contact Privacy policy Terms and conditions