mirror of
https://github.com/bellingcat/datasheet-server.git
synced 2026-06-11 12:58:32 +03:00
update docs Interface.js, abstract model layer errors
This commit is contained in:
13
src/lib/errors.js
Normal file
13
src/lib/errors.js
Normal 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))
|
||||
}
|
||||
Reference in New Issue
Block a user