Skip to content

Commit 996511d

Browse files
committed
Added exceptions
1 parent da43f31 commit 996511d

19 files changed

+266
-101
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
namespace YdbPlatform\Ydb\Exceptions\Grpc;
4+
5+
use YdbPlatform\Ydb\Exceptions\RetryableException;
6+
7+
class AbortedException extends RetryableException
8+
{
9+
10+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
namespace YdbPlatform\Ydb\Exceptions\Grpc;
4+
5+
class AlreadyExistsException extends \YdbPlatform\Ydb\Exceptions\NonRetryableException
6+
{
7+
8+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
namespace YdbPlatform\Ydb\Exceptions\Grpc;
4+
5+
use YdbPlatform\Ydb\Exceptions\NonRetryableException;
6+
7+
class DataLossException extends NonRetryableException
8+
{
9+
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
namespace YdbPlatform\Ydb\Exceptions\Grpc;
4+
5+
use YdbPlatform\Ydb\Exceptions\NonRetryableException;
6+
7+
class FailedPreconditionException extends NonRetryableException
8+
{
9+
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
namespace YdbPlatform\Ydb\Exceptions\Grpc;
4+
5+
use YdbPlatform\Ydb\Exceptions\RetryableException;
6+
7+
class InternalException extends RetryableException
8+
{
9+
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
namespace YdbPlatform\Ydb\Exceptions\Grpc;
4+
5+
use YdbPlatform\Ydb\Exceptions\NonRetryableException;
6+
7+
class NotFoundException extends NonRetryableException
8+
{
9+
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
namespace YdbPlatform\Ydb\Exceptions\Grpc;
4+
5+
use YdbPlatform\Ydb\Exceptions\NonRetryableException;
6+
7+
class OutOfRangeException extends NonRetryableException
8+
{
9+
10+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
namespace YdbPlatform\Ydb\Exceptions\Grpc;
4+
5+
class PermissionDeniedException extends \YdbPlatform\Ydb\Exceptions\NonRetryableException
6+
{
7+
8+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
namespace YdbPlatform\Ydb\Exceptions\Grpc;
4+
5+
use YdbPlatform\Ydb\Exceptions\RetryableException;
6+
7+
class ResourceExhaustedException extends RetryableException
8+
{
9+
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
namespace YdbPlatform\Ydb\Exceptions\Grpc;
4+
5+
use YdbPlatform\Ydb\Exceptions\NonRetryableException;
6+
7+
class UnauthenticatedException extends NonRetryableException
8+
{
9+
10+
}

0 commit comments

Comments
 (0)