-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
252 additions
and
863 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
packages/base/libraries/background/Exceptions/CannotStartProcessException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
namespace packages\base\Process\Exceptions; | ||
|
||
use packages\base\Exception; | ||
use packages\base\Process; | ||
|
||
class CannotStartProcessException extends Exception { | ||
public function __construct(public readonly Process $process, string $message = "can not start process") { | ||
parent::__construct($message); | ||
} | ||
|
||
public function getProcess(): Process | ||
{ | ||
return $this->process; | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
packages/base/libraries/background/Exceptions/InterruptedException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
namespace packages\base\Process\Exceptions; | ||
|
||
use packages\base\InterruptedException as LegacyInterruptedException; | ||
|
||
class InterruptedException extends LegacyInterruptedException { | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/base/libraries/background/Exceptions/NotSavedProcessException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
namespace packages\base\Process\Exceptions; | ||
|
||
use packages\base\Exception; | ||
|
||
class NotSavedProcessException extends Exception { | ||
public function __construct(string $message = "process does not saved") { | ||
parent::__construct($message); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
packages/base/libraries/background/Exceptions/NotShellAccessException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
namespace packages\base\Process\Exceptions; | ||
|
||
use packages\base\NotShellAccess; | ||
|
||
class NotShellAccessException extends NotShellAccess { | ||
} |
16 changes: 16 additions & 0 deletions
16
packages/base/libraries/background/Exceptions/NotStartedProcessException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
namespace packages\base\Process\Exceptions; | ||
|
||
use packages\base\Exception; | ||
use packages\base\Process; | ||
|
||
class NotStartedProcessException extends Exception { | ||
public function __construct(public readonly Process $process, string $message = "process does not started") { | ||
parent::__construct($message); | ||
} | ||
|
||
public function getProcess(): Process | ||
{ | ||
return $this->process; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
<?php | ||
namespace packages\base; | ||
class InterruptedException extends \Exception { | ||
|
||
/** | ||
* @deprecated use packages\base\Process\Exceptions\InterruptedException instead! | ||
*/ | ||
class InterruptedException extends Exception { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
<?php | ||
namespace packages\base; | ||
|
||
/** | ||
* @deprecated use packages\base\Process\Exceptions\NotShellAccessException instead! | ||
*/ | ||
class NotShellAccess extends Exception { | ||
public function __construct(string $message = "shell_exec() function is disiabled") { | ||
public function __construct(string $message = "shell_exec() function is disabled") { | ||
parent::__construct($message); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.