forked from apple/swift-package-manager
/
Error.swift
32 lines (26 loc) · 880 Bytes
/
Error.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
This source file is part of the Swift.org open source project
Copyright 2015 - 2016 Apple Inc. and the Swift project authors
Licensed under Apache License v2.0 with Runtime Library Exception
See http://swift.org/LICENSE.txt for license information
See http://swift.org/CONTRIBUTORS.txt for Swift project authors
*/
import PackageType
extension Package {
public enum ModuleError: ErrorProtocol {
case NoModules(Package)
case ModuleNotFound(String)
case InvalidLayout(InvalidLayoutType)
}
public enum InvalidLayoutType {
case MultipleSourceRoots([String])
case InvalidLayout
}
}
extension Module {
public enum Error: ErrorProtocol {
case NoSources(String)
case MixedSources(String)
case CExecutableNotSupportedYet(String) //TODO: Remove this when add Support for C Exectuable
}
}