mirror of
https://github.com/TheAlgorithms/PHP.git
synced 2025-07-07 18:22:27 +02:00
15 lines
341 B
PHP
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);
|
|
}
|
|
}
|