1<?php
2/**
3 * DokuWiki Plugin stratabasic
4 *
5 * @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html
6 * @author  Brend Wanders <b.wanders@utwente.nl>
7 */
8
9// must be run within Dokuwiki
10if (!defined('DOKU_INC')) die('Meh.');
11
12class strata_exception extends Exception {
13    protected $data;
14
15    /**
16     * Constructor with message and data.
17     */
18    public function __construct($message, $data) {
19        parent::__construct($message);
20        $this->data =& $data;
21    }
22
23    public function getData() {
24        return $this->data;
25    }
26}
27