Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

ToolError

Swift
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift

API reference · Markdown

enum ToolError : enum ToolError
enum [source]
enum [source]
enum ToolError

Why a call could not produce its normal result.

Discussed in Swift MCP API

Members

!=(_:_:)

!=(_:_:) ( lhs : Self , rhs : Self ) → Bool
functionstatic
functionstatic
!=(_:_:)

Inherited from Equatable.!=(_:_:)

Returns a Boolean value indicating whether two values are not equal.

Inequality is the inverse of equality. For any values a and b, a != b implies that a == b is false.

This is the default implementation of the not-equal-to operator (!=) for any type that conforms to Equatable.

  • Parameters:
    • lhs: A value to compare.
    • rhs: Another value to compare.

localizedDescription

localizedDescription : var localizedDescription: String
property
property
localizedDescription

Inherited from Error.localizedDescription

Retrieve the localized description for this error.

unknownTool(_:)

unknownTool(_:) : case unknownTool(String)
constant [source]
constant [source]
unknownTool(_:)

missingArgument(_:)

missingArgument(_:) : case missingArgument(String)
constant [source]
constant [source]
missingArgument(_:)

unknownArguments(_:accepted:)

unknownArguments(_:accepted:) : case unknownArguments([String], accepted: [String])
constant [source]
constant [source]
unknownArguments(_:accepted:)

wrongArgumentType(_:expected:)

wrongArgumentType(_:expected:) : case wrongArgumentType(String, expected: String)
constant [source]
constant [source]
wrongArgumentType(_:expected:)

notAllowed(_:value:allowed:)

notAllowed(_:value:allowed:) : case notAllowed(String, value: String, allowed: [String])
constant [source]
constant [source]
notAllowed(_:value:allowed:)

notEnabled(_:)

notEnabled(_:) : case notEnabled(String)
constant [source]
constant [source]
notEnabled(_:)

refusedForSafety(_:)

refusedForSafety(_:) : case refusedForSafety(String)
constant [source]
constant [source]
refusedForSafety(_:)

tmuxRejected(_:)

tmuxRejected(_:) : case tmuxRejected(String)
constant [source]
constant [source]
tmuxRejected(_:)

tmux(_:)

tmux(_:) : case tmux(TmuxError)
constant [source]
constant [source]
tmux(_:)

internalFailure(_:)

internalFailure(_:) : case internalFailure(String)
constant [source]
constant [source]
internalFailure(_:)

description

description : var description: String
property [source]
property [source]
description

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 custom description property for types that conform to CustomStringConvertible:

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 p to a string in the assignment to s uses the Point type's description property.

Esc

Type to search.