for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Exception for no records in database
*
* @package Ibonly\NaijaEmoji\PasswordException
* @author Ibraheem ADENIYI <[email protected]>
* @license MIT <https://opensource.org/licenses/MIT>
*/
namespace Ibonly\NaijaEmoji;
use Exception;
class PasswordException extends Exception
{
public function __construct ()
parent::__construct("Password is not correct");
}
* Get the error message
* @return string
public function errorMessage ()
return json_encode(['status' => '401', 'Message' => $this->getMessage()]);