Extensions

The following extensions are available globally.

  • Turn a string into an error, so that it can be thrown as an exception.

    This should only be used in tests.

    See more

    Declaration

    Swift

    extension String: Error