File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 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)
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 );
You can’t perform that action at this time.
0 commit comments