Skip to content

Commit 6524496

Browse files
committed
feat: Introduce ApplicationErrorCategory enum
1 parent 7414627 commit 6524496

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
3+
/**
4+
* This file is part of Temporal package.
5+
*
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
*/
9+
10+
declare(strict_types=1);
11+
12+
namespace Temporal\Exception\Failure;
13+
14+
/**
15+
* Used to categorize application failures, for example, to distinguish benign errors from others.
16+
*
17+
* @see \Temporal\Api\Enums\V1\ApplicationErrorCategory
18+
*/
19+
enum ApplicationErrorCategory
20+
{
21+
case Unspecified;
22+
23+
/**
24+
* Expected application error with little/no severity.
25+
*/
26+
case Benign;
27+
}

0 commit comments

Comments
 (0)