|
19 | 19 |
|
20 | 20 | class UnsupportedException extends RuntimeException
|
21 | 21 | {
|
22 |
| - /** |
23 |
| - * Thrown when a command's allowDiskUse option is not supported by a server. |
24 |
| - * |
25 |
| - * @return self |
26 |
| - */ |
27 |
| - public static function allowDiskUseNotSupported() |
28 |
| - { |
29 |
| - return new self('The "allowDiskUse" option is not supported by the server executing this operation'); |
30 |
| - } |
31 |
| - |
32 |
| - /** |
33 |
| - * Thrown when array filters are not supported by a server. |
34 |
| - * |
35 |
| - * @deprecated 1.12 |
36 |
| - * @todo Remove this in 2.0 (see: PHPLIB-797) |
37 |
| - * |
38 |
| - * @return self |
39 |
| - */ |
40 |
| - public static function arrayFiltersNotSupported() |
41 |
| - { |
42 |
| - return new self('Array filters are not supported by the server executing this operation'); |
43 |
| - } |
44 |
| - |
45 |
| - /** |
46 |
| - * Thrown when collations are not supported by a server. |
47 |
| - * |
48 |
| - * @deprecated 1.12 |
49 |
| - * @todo Remove this in 2.0 (see: PHPLIB-797) |
50 |
| - * |
51 |
| - * @return self |
52 |
| - */ |
53 |
| - public static function collationNotSupported() |
54 |
| - { |
55 |
| - return new self('Collations are not supported by the server executing this operation'); |
56 |
| - } |
57 |
| - |
58 | 22 | /**
|
59 | 23 | * Thrown when the commitQuorum option for createIndexes is not supported
|
60 | 24 | * by a server.
|
61 | 25 | *
|
62 | 26 | * @return self
|
| 27 | + * @internal |
63 | 28 | */
|
64 | 29 | public static function commitQuorumNotSupported()
|
65 | 30 | {
|
66 | 31 | return new self('The "commitQuorum" option is not supported by the server executing this operation');
|
67 | 32 | }
|
68 | 33 |
|
69 |
| - /** |
70 |
| - * Thrown when explain is not supported by a server. |
71 |
| - * |
72 |
| - * @return self |
73 |
| - */ |
74 |
| - public static function explainNotSupported() |
75 |
| - { |
76 |
| - return new self('Explain is not supported by the server executing this operation'); |
77 |
| - } |
78 |
| - |
79 | 34 | /**
|
80 | 35 | * Thrown when a command's hint option is not supported by a server.
|
81 | 36 | *
|
82 | 37 | * @return self
|
| 38 | + * @internal |
83 | 39 | */
|
84 | 40 | public static function hintNotSupported()
|
85 | 41 | {
|
86 | 42 | return new self('Hint is not supported by the server executing this operation');
|
87 | 43 | }
|
88 | 44 |
|
89 |
| - /** |
90 |
| - * Thrown when a command's readConcern option is not supported by a server. |
91 |
| - * |
92 |
| - * @return self |
93 |
| - */ |
94 |
| - public static function readConcernNotSupported() |
95 |
| - { |
96 |
| - return new self('Read concern is not supported by the server executing this command'); |
97 |
| - } |
98 |
| - |
99 | 45 | /**
|
100 | 46 | * Thrown when a readConcern is used with a read operation in a transaction.
|
101 | 47 | *
|
102 | 48 | * @return self
|
| 49 | + * @internal |
103 | 50 | */
|
104 | 51 | public static function readConcernNotSupportedInTransaction()
|
105 | 52 | {
|
106 | 53 | return new self('The "readConcern" option cannot be specified within a transaction. Instead, specify it when starting the transaction.');
|
107 | 54 | }
|
108 | 55 |
|
109 |
| - /** |
110 |
| - * Thrown when a command's writeConcern option is not supported by a server. |
111 |
| - * |
112 |
| - * @return self |
113 |
| - */ |
114 |
| - public static function writeConcernNotSupported() |
115 |
| - { |
116 |
| - return new self('Write concern is not supported by the server executing this command'); |
117 |
| - } |
118 |
| - |
119 | 56 | /**
|
120 | 57 | * Thrown when a writeConcern is used with a write operation in a transaction.
|
121 | 58 | *
|
122 | 59 | * @return self
|
| 60 | + * @internal |
123 | 61 | */
|
124 | 62 | public static function writeConcernNotSupportedInTransaction()
|
125 | 63 | {
|
|
0 commit comments