Differences Between: [Versions 310 and 311] [Versions 310 and 400] [Versions 310 and 401]
1 <?php 2 /* 3 * Copyright 2015-2017 MongoDB, Inc. 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 */ 17 18 namespace MongoDB\Exception; 19 20 class UnsupportedException extends RuntimeException 21 { 22 /** 23 * Thrown when array filters are not supported by a server. 24 * 25 * @return self 26 */ 27 public static function arrayFiltersNotSupported() 28 { 29 return new static('Array filters are not supported by the server executing this operation'); 30 } 31 32 /** 33 * Thrown when collations are not supported by a server. 34 * 35 * @return self 36 */ 37 public static function collationNotSupported() 38 { 39 return new static('Collations are not supported by the server executing this operation'); 40 } 41 42 /** 43 * Thrown when explain is not supported by a server. 44 * 45 * @return self 46 */ 47 public static function explainNotSupported() 48 { 49 return new static('Explain is not supported by the server executing this operation'); 50 } 51 52 /** 53 * Thrown when a command's readConcern option is not supported by a server. 54 * 55 * @return self 56 */ 57 public static function readConcernNotSupported() 58 { 59 return new static('Read concern is not supported by the server executing this command'); 60 } 61 62 /** 63 * Thrown when a readConcern is used with a read operation in a transaction. 64 * 65 * @return self 66 */ 67 public static function readConcernNotSupportedInTransaction() 68 { 69 return new static('The "readConcern" option cannot be specified within a transaction. Instead, specify it when starting the transaction.'); 70 } 71 72 /** 73 * Thrown when a command's writeConcern option is not supported by a server. 74 * 75 * @return self 76 */ 77 public static function writeConcernNotSupported() 78 { 79 return new static('Write concern is not supported by the server executing this command'); 80 } 81 82 /** 83 * Thrown when a writeConcern is used with a write operation in a transaction. 84 * 85 * @return self 86 */ 87 public static function writeConcernNotSupportedInTransaction() 88 { 89 return new static('The "writeConcern" option cannot be specified within a transaction. Instead, specify it when starting the transaction.'); 90 } 91 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body