File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -18,15 +18,15 @@ public function __construct(LoopInterface $loop)
18
18
protected function createUnixSocket ()
19
19
{
20
20
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. ' );
22
22
}
23
23
24
24
if (!defined ('EPROCESS_AUTOLOAD ' )) {
25
- throw new \Exception ('EPROCESS_AUTOLOAD is not defined. ' );
25
+ throw new \RuntimeException ('EPROCESS_AUTOLOAD is not defined. ' );
26
26
}
27
27
28
28
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 ));
30
30
}
31
31
32
32
$ unixFile = sprintf ('%s/%s.sock ' , EPROCESS_SOCKET_DIR , $ this ->node );
You can’t perform that action at this time.
0 commit comments