| 1 |
<?php |
| 2 |
|
| 3 |
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure. |
| 4 |
namespace Yoast\WP\SEO\Bulk_Editor\Domain\Updates; |
| 5 |
|
| 6 |
/** |
| 7 |
* This class holds the error codes an update can fail with. |
| 8 |
*/ |
| 9 |
class Update_Error { |
| 10 |
|
| 11 |
/** |
| 12 |
* The current user is not allowed to edit the post. |
| 13 |
*/ |
| 14 |
public const FORBIDDEN = 'forbidden'; |
| 15 |
|
| 16 |
/** |
| 17 |
* The post does not exist. |
| 18 |
*/ |
| 19 |
public const NOT_FOUND = 'not_found'; |
| 20 |
|
| 21 |
/** |
| 22 |
* The post type is not supported by the bulk editor. |
| 23 |
*/ |
| 24 |
public const INVALID_POST_TYPE = 'invalid_post_type'; |
| 25 |
|
| 26 |
/** |
| 27 |
* Saving the update failed. |
| 28 |
*/ |
| 29 |
public const SAVE_FAILED = 'save_failed'; |
| 30 |
} |
| 31 |
|