<?php

namespace WPD\Database;

final class DatabaseException extends \RuntimeException
{
    private $category;

    public function __construct($category)
    {
        parent::__construct('La operación de base de datos no pudo completarse.');
        $this->category = (string) $category;
    }

    public function category()
    {
        return $this->category;
    }
}

