PHP Classes

File: docs/exceptions.rst

Recommend this page to a friend!
  Packages of A. B. M. Mahmudul Hasan   UID (UUID, ULID, Snowflake, Sonyflake, Nano, CUID, KSUID, XID, TBSL)   docs/exceptions.rst   Download  
File: docs/exceptions.rst
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: UID (UUID, ULID, Snowflake, Sonyflake, Nano, CUID, KSUID, XID, TBSL)
Generate, parse, validate unique identifiers
Author: By
Last change:
Date: 8 days ago
Size: 721 bytes
 

Contents

Class file image Download
Exceptions ========== Hierarchy --------- - ``Infocyph\\UID\\Exceptions\\UIDException`` - ``Infocyph\\UID\\Exceptions\\UUIDException`` - ``Infocyph\\UID\\Exceptions\\ULIDException`` - ``Infocyph\\UID\\Exceptions\\SnowflakeException`` - ``Infocyph\\UID\\Exceptions\\SonyflakeException`` - ``Infocyph\\UID\\Exceptions\\FileLockException`` Usage Pattern ------------- Catch specific exceptions when you need algorithm-level handling, or catch ``UIDException`` for a package-wide fallback. .. code-block:: php <?php use Infocyph\UID\Exceptions\UIDException; use Infocyph\UID\UUID; try { $uuid = UUID::normalize('{INVALID}'); } catch (UIDException $e) { // Handle UID package errors. }