Cuckoo/Generator/Source/CuckooGeneratorError.swift

24 lines
521 B
Swift

//
// MockeryGeneratorError.swift
// CuckooGenerator
//
// Created by Tadeas Kriz on 13/01/16.
// Copyright © 2016 Brightify. All rights reserved.
//
import Foundation
import FileKit
public enum CuckooGeneratorError: ErrorType {
case IOError(FileKitError)
case UnknownError(ErrorType)
public var description: String {
switch self {
case .IOError(let error):
return error.description
case .UnknownError(let error):
return "\(error)"
}
}
}