Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Exception::getMessage in php

<?php
try {
    throw new Exception("Some error message");
} catch(Exception $e) {
    echo $e->getMessage();
}
?>
  
 The above example will output something similar to:

Some error message
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php
ADD COMMENT
Topic
Name
6+7 =