Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

catch any exception php

try {
  // call a success/error/progress handler
} catch (Throwable $e) { // For PHP 7
  // handle $e
} catch (Exception $e) { // For PHP 5
  // handle $e
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #catch #exception #php
ADD COMMENT
Topic
Name
7+1 =