IdentifierCannotBeEmptyException
Overview
Class Details
Purpose
Usage
use Midnite81\Guardian\Guardian;
use Midnite81\Guardian\Exceptions\IdentifierCannotBeEmptyException;
try {
$guardian = new Guardian('', $cache); // This will throw IdentifierCannotBeEmptyException
} catch (IdentifierCannotBeEmptyException $e) {
echo "Error: " . $e->getMessage();
}Best Practices
Error Message
Handling the Exception
Integration with Guardian
Last updated