• 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

Laravel with App Engine Standard Class 'FacadeIgnitionIgnitionServiceProvider' not found

How can I pass the list to the component variable in Laravel?

Laravel 5.1 how to use {{ old('') }} helper on blade file for radio inputs

Laravel: HTML in notification

javascript html popup window

Unable to guess the mime type as no guessers are available Laravel 5.2

Eloquent insert id with sequence next value

How to install LDAP in Docker php-fpm alpine

protect images from being copied

correct PHP headers for pdf file download

PHP rotate matrix counter-clockwise

Laravel post contact form giving me error 419

Php - Sum up the numbers in an array one by one

Sum column values from multiple arrays

GuzzleHttp Hangs When Using Localhost

About Contact Privacy policy Terms and conditions