forked from simplethings/SimpleThingsTransactionalBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTransactionException.php
More file actions
26 lines (23 loc) · 824 Bytes
/
Copy pathTransactionException.php
File metadata and controls
26 lines (23 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
/**
* SimpleThings TransactionalBundle
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to kontakt@beberlei.de so I can send you a copy immediately.
*/
namespace SimpleThings\TransactionalBundle;
class TransactionException extends \RuntimeException
{
static public function duplicateConnectionMatch($connName, $secondPattern)
{
return new self(
"The connection '" . $connName . "' matches a second time with pattern " . $secondPattern . ". " .
"Each connection is only allowed to match once, conflict resolution is currently not possible."
);
}
}