Skip to content

Commit e02736c

Browse files
committed
Use Runtime exceptions
1 parent b9a4837 commit e02736c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

EProcess/Adapter/BaseAdapter.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ public function __construct(LoopInterface $loop)
1818
protected function createUnixSocket()
1919
{
2020
if (!defined('EPROCESS_SOCKET_DIR')) {
21-
throw new \Exception("EPROCESS_SOCKET_DIR is not defined.");
21+
throw new \RuntimeException('EPROCESS_SOCKET_DIR is not defined.');
2222
}
2323

2424
if (!defined('EPROCESS_AUTOLOAD')) {
25-
throw new \Exception('EPROCESS_AUTOLOAD is not defined.');
25+
throw new \RuntimeException('EPROCESS_AUTOLOAD is not defined.');
2626
}
2727

2828
if (!is_writable(EPROCESS_SOCKET_DIR)) {
29-
throw new \Exception(sprintf("Cannot write to %s.", EPROCESS_SOCKET_DIR));
29+
throw new \RuntimeException(sprintf('Cannot write to "%s".', EPROCESS_SOCKET_DIR));
3030
}
3131

3232
$unixFile = sprintf('%s/%s.sock', EPROCESS_SOCKET_DIR, $this->node);

0 commit comments

Comments
 (0)