-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add initial files for save data file relation
- Loading branch information
1 parent
7a7f548
commit 2a7fe75
Showing
5 changed files
with
143 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
'use strict'; | ||
|
||
class SlsApiUploadError extends Error { | ||
|
||
static get messages() { | ||
|
||
return { | ||
BUCKET_NOT_DEFINED: 'Bucket not defined', | ||
BUCKET_NOT_STRING: 'Bucket should be return a string', | ||
ENTITY_ID_FIELD_NOT_DEFINED: 'EntityIdField not defined', | ||
ENTITY_ID_FIELD_NOT_STRING: 'EntityIdField should be return a string', | ||
TABLE_NOT_STRING: 'Table should be return a string', | ||
CUSTOM_FIELDS_NOT_ARRAY_OF_STRINGS: 'CustomFields should be an array of strings.', | ||
CUSTOM_FIELDS_STRUCT_NOT_OBJECT: 'CustomFieldsStruct should be a object', | ||
DATABASEKEY_NOT_STRING: 'DatabaseKey should be return a string' | ||
}; | ||
|
||
} | ||
|
||
constructor(err) { | ||
super(err); | ||
this.message = err.message || err; | ||
this.name = 'SlsApiFileRelationError'; | ||
} | ||
} | ||
|
||
module.exports = SlsApiUploadError; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters