ToolError
Swift
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust Unavailable
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift
-
Why a call could not produce its normal result.
Discussed in Swift MCP API
Members
- functionstatic ¶!=(_:_:)
-
Inherited from
Equatable.!=(_:_:)Returns a Boolean value indicating whether two values are not equal.
Inequality is the inverse of equality. For any values
aandb,a != bimplies thata == bisfalse.This is the default implementation of the not-equal-to operator (
!=) for any type that conforms toEquatable.- Parameters:
- lhs: A value to compare.
- rhs: Another value to compare.
- Parameters:
- localizedDescription : var localizedDescription: Stringproperty ¶property ¶localizedDescription
-
Inherited from
Error.localizedDescriptionRetrieve the localized description for this error.
wrongArgumentType(_:expected:)
- description : var description: String
-
A textual representation of this instance.
Calling this property directly is discouraged. Instead, convert an instance of any type to a string by using the
String(describing:)initializer. This initializer works with any type, and uses the customdescriptionproperty for types that conform toCustomStringConvertible:struct Point: CustomStringConvertible { let x: Int, y: Int
var description: String { return "(\(x), \(y))" } }
let p = Point(x: 21, y: 30) let s = String(describing: p) print(s) // Prints "(21, 30)"
The conversion of
pto a string in the assignment tosuses thePointtype'sdescriptionproperty.