Files
TheAlgorithms-PHP/DataStructures/BinarySearchTree/DuplicateKeyException.php
Ramy 57e772a1e0 Implemented Binary Search Tree as Data Structure. Implemented with Iterator Interface. (#174)
Implemented Binary Search Tree as Data Structure. Implemented with Iterator Interface
2024-10-19 00:59:47 -06:00

15 lines
341 B
PHP

<?php
namespace DataStructures\BinarySearchTree;
use LogicException;
class DuplicateKeyException extends LogicException
{
public function __construct($key, $code = 0, LogicException $previous = null)
{
$message = "Insertion failed. Duplicate key: " . $key;
parent::__construct($message, $code, $previous);
}
}