for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* class NoDataFoundException.
*
* @extends Exception
* Throws an error if the index for
* the key is not found in the
* array
* @author: Raimi Ademola <[email protected]>
* @copyright: 2016 Andela
*/
namespace Demo;
use Exception;
class NoDataFoundException extends Exception
{
public $message;
* @param string $errorMessage The message from the Exception
public function __construct($errorMessage)
return $this->message = $errorMessage;
}