URLConvertible

public protocol URLConvertible

Represents a type which could be converted to a URL.

  • Returns a URL or throws if an error was encountered.

    Throws

    Error thrown when the convertion fails.

    Declaration

    Swift

    func asURL() throws -> URL

    Return Value

    The URL.