Duplicate.php

<?php

namespace Lia\Exception;

class Duplicate extends Base {

    public function __construct($dupeType, $dupeName){
        $trace = $this->getTrace();
        $class = $trace[0]['class'];
        // print_r($trace[1]);
        $message = "A duplicate '{$dupeType}' named '{$dupeName}' was set on '{$class}'\n";
        parent::__construct($message);
    }
}