SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Feb 2007
    Posts
    230
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    error_reporting(E_ALL) and catch (Exception $e) {

    I have on top of my code the line
    PHP Code:
    error_reporting(E_ALL);
    echo 
    $undefinedVariable
    This displays unstyled text. Is it possible to catch all errors that are displayed with error_reporting(E_ALL) via throw try block and then display those errors inside desired place?

    tnx!
    Dilster.com - Dating blog where you can find new dating tips, advices and ideas or your partner.

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You might find set_error_handler useful. Errors and exceptions are separate things.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •