Exceptions#
Hierarchy#
Infocyph\\UID\\Exceptions\\UIDExceptionInfocyph\\UID\\Exceptions\\UUIDExceptionInfocyph\\UID\\Exceptions\\ULIDExceptionInfocyph\\UID\\Exceptions\\SnowflakeExceptionInfocyph\\UID\\Exceptions\\SonyflakeExceptionInfocyph\\UID\\Exceptions\\FileLockException
Usage Pattern#
Catch specific exceptions when you need algorithm-level handling,
or catch UIDException for a package-wide fallback.
<?php
use Infocyph\UID\Exceptions\UIDException;
use Infocyph\UID\UUID;
try {
$uuid = UUID::normalize('{INVALID}');
} catch (UIDException $e) {
// Handle UID package errors.
}