//
//  VBPerfectStoreError.swift
//  VBPerfectArchitecture
//
//  Created by Valentin Bercot on 13/02/2017.
//
//

import Foundation

/**
 `Error` enum used to represent error cases throw by `VBPerfectStore` extended classes.
 
 - authors: Valentin Bercot
 */
public enum VBPerfectStoreError: Error
{
    case alreadyExist(identifier: String)
    case badFormat(parameter: String)
    case identifiersNotExpected(identifiers: [String], expected: UInt8, obtained: UInt8)
    case limitReached(limit: UInt8)
    case notFound(identifier: String)
    case notSingle(identifier: String)
}

//
//  VBPerfectStoreError.swift
//  VBPerfectArchitecture
//
//  Created by Valentin Bercot on 13/02/2017.
//
//

import Foundation

/**
 `Error` enum used to represent error cases throw by `VBPerfectStore` extended classes.
 
 - authors: Valentin Bercot
 */
public enum VBPerfectStoreError: Error
{
    case alreadyExist(identifier: String)
    case badFormat(parameter: String)
    case identifiersNotEmpty(identifiers: [String])
    case limitReached(limit: UInt8)
    case notFound(identifier: String)
    case notSingle(identifier: String)
}

--- 
+++ 
@@ -17,7 +17,7 @@
 {
     case alreadyExist(identifier: String)
     case badFormat(parameter: String)
-    case identifiersNotEmpty(identifiers: [String])
+    case identifiersNotExpected(identifiers: [String], expected: UInt8, obtained: UInt8)
     case limitReached(limit: UInt8)
     case notFound(identifier: String)
     case notSingle(identifier: String)
Make identifiers error case more generic

