Moved the MakeURLRequestError error from the MakeURLRequestUseCase use case to its own file.

This commit is contained in:
Javier Cicchelli 2023-04-19 00:16:56 +02:00
parent 9ee4afc69d
commit 6277f95661
2 changed files with 17 additions and 7 deletions

View File

@ -0,0 +1,17 @@
//===----------------------------------------------------------------------===//
//
// This source file is part of the SwiftLibs open source project
//
// Copyright (c) 2023 Röck+Cöde VoF. and the SwiftLibs project authors
// Licensed under the EUPL 1.2 or later.
//
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt for the list of SwiftLibs project authors
//
//===----------------------------------------------------------------------===//
/// Errors generated out of the `MakeURLRequestUseCase` use case.
public enum MakeURLRequestError: Error {
/// An expected URL was not created.
case urlNotCreated
}

View File

@ -49,10 +49,3 @@ public struct MakeURLRequestUseCase {
} }
} }
// MARK: - Errors
enum MakeURLRequestError: Error {
case urlNotCreated
}