1: <?php
2: /**
3: * This code is licensed under AGPLv3 license or Afterlogic Software License
4: * if commercial version of the product was purchased.
5: * For full statements of the licenses see LICENSE-AFTERLOGIC and LICENSE-AGPL3 files.
6: */
7:
8: namespace Aurora\Modules\Files\Enums;
9:
10: /**
11: * @license https://www.gnu.org/licenses/agpl-3.0.html AGPL-3.0
12: * @license https://afterlogic.com/products/common-licensing Afterlogic Software License
13: * @copyright Copyright (c) 2023, Afterlogic Corp.
14: */
15: class ErrorCodes
16: {
17: public const NotFound = 4001;
18: public const NotPermitted = 4002;
19: public const AlreadeExists = 4003;
20: public const CantDeleteSharedItem = 4004;
21: public const CannotCopyOrMoveItemToItself = 4005;
22: public const NotPossibleToMoveSharedFileToCorporateStorage = 4006;
23:
24: /**
25: * @var array
26: */
27: protected $aConsts = [
28: 'NotFound' => self::NotFound,
29: 'NotPermitted' => self::NotPermitted,
30: 'AlreadeExists' => self::AlreadeExists,
31: 'CantDeleteSharedItem' => self::CantDeleteSharedItem,
32: 'CannotCopyOrMoveItemToItself' => self::CannotCopyOrMoveItemToItself,
33: 'NotPossibleToMoveSharedFileToCorporateStorage' => self::NotPossibleToMoveSharedFileToCorporateStorage,
34: ];
35: }
36: