<?php

namespace MGModule\DNSManager2\mgLibs\exceptions;
use MGModule\DNSManager2 as main;

/**
 * Base Module Exception
 * 
 * Use as base for other exceptions
 *
 * @author Michal Czech <michael@modulesgarden.com>
 */
class base extends \Exception {
    private $_token;
    
    public function __construct($message, $code, $previous = null) {
        parent::__construct($message, (int)$code, $previous);
        $this->_token = md5(microtime());
    }
    
    public function getToken(){
        return $this->_token;
    }
}
