protected function _extractException($error) { if (preg_match('/^(\\w+)\\[.*\\]/', $error, $matches)) { return $matches[1]; } else { return; } }