-
-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new specific workflow exceptions
Two new specific exceptions have been added, 'ActivityOrRobotAlreadyInstalledException' and 'ActivityOrRobotValidationFailureException' in the workflow services. These exceptions are to be thrown in situations where an activity or robot is already installed or fails validation. This improves error handling by distinguishing specific scenarios during the API's error handling process. Signed-off-by: mesilov <[email protected]>
- Loading branch information
Showing
4 changed files
with
34 additions
and
4 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
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
9 changes: 9 additions & 0 deletions
9
src/Services/Workflows/Exceptions/ActivityOrRobotAlreadyInstalledException.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,9 @@ | ||
<?php | ||
|
||
namespace Bitrix24\SDK\Services\Workflows\Exceptions; | ||
|
||
use Bitrix24\SDK\Core\Exceptions\InvalidArgumentException; | ||
|
||
class ActivityOrRobotAlreadyInstalledException extends InvalidArgumentException | ||
{ | ||
} |
9 changes: 9 additions & 0 deletions
9
src/Services/Workflows/Exceptions/ActivityOrRobotValidationFailureException.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,9 @@ | ||
<?php | ||
|
||
namespace Bitrix24\SDK\Services\Workflows\Exceptions; | ||
|
||
use Bitrix24\SDK\Core\Exceptions\InvalidArgumentException; | ||
|
||
class ActivityOrRobotValidationFailureException extends InvalidArgumentException | ||
{ | ||
} |