added additional internal string helpers for missing/invalid args

This commit is contained in:
Salakar 2017-09-24 13:18:39 +01:00
parent c2ce379b2c
commit a242df1daa
1 changed files with 14 additions and 0 deletions

View File

@ -70,6 +70,20 @@ export default {
return `Missing required argument of type '${type}' for method '${method}()'.`;
},
/**
* @return {string}
*/
ERROR_MISSING_ARG_NAMED(name, type, method) {
return `Missing required argument '${name}' of type '${type}' for method '${method}()'.`;
},
/**
* @return {string}
*/
ERROR_ARG_INVALID_VALUE(name, expected, got) {
return `Invalid value for argument '${name}' expected value '${expected}' but got '${got}'.`;
},
/**
* @return {string}
*/