update docs Interface.js, abstract model layer errors

This commit is contained in:
Lachlan Kermode
2018-12-07 16:37:27 +00:00
parent f104754cf9
commit 4151d68f2e
4 changed files with 47 additions and 22 deletions

13
src/lib/errors.js Normal file
View File

@@ -0,0 +1,13 @@
import copy from '../copy/en'
export function modelLayerGeneric (parts) {
return new Error(copy.errors.modelLayer(parts))
}
export function noFragment (parts) {
return new Error(copy.errors.noFragment(parts))
}
export function noResource (parts) {
return new Error(copy.errors.noResource(parts))
}