UNPKG

4 kBJavaScriptView Raw
1export var DUPLICATED_INJECTABLE_DECORATOR = "Cannot apply @injectable decorator multiple times.";
2export var DUPLICATED_METADATA = "Metadata key was used more than once in a parameter:";
3export var NULL_ARGUMENT = "NULL argument";
4export var KEY_NOT_FOUND = "Key Not Found";
5export var AMBIGUOUS_MATCH = "Ambiguous match found for serviceIdentifier:";
6export var CANNOT_UNBIND = "Could not unbind serviceIdentifier:";
7export var NOT_REGISTERED = "No matching bindings found for serviceIdentifier:";
8export var MISSING_INJECTABLE_ANNOTATION = "Missing required @injectable annotation in:";
9export var MISSING_INJECT_ANNOTATION = "Missing required @inject or @multiInject annotation in:";
10export var UNDEFINED_INJECT_ANNOTATION = function (name) {
11 return "@inject called with undefined this could mean that the class " + name + " has " +
12 "a circular dependency problem. You can use a LazyServiceIdentifer to " +
13 "overcome this limitation.";
14};
15export var CIRCULAR_DEPENDENCY = "Circular dependency found:";
16export var NOT_IMPLEMENTED = "Sorry, this feature is not fully implemented yet.";
17export var INVALID_BINDING_TYPE = "Invalid binding type:";
18export var NO_MORE_SNAPSHOTS_AVAILABLE = "No snapshot available to restore.";
19export var INVALID_MIDDLEWARE_RETURN = "Invalid return type in middleware. Middleware must return!";
20export var INVALID_FUNCTION_BINDING = "Value provided to function binding must be a function!";
21export var LAZY_IN_SYNC = function (key) { return "You are attempting to construct '" + key + "' in a synchronous way\n but it has asynchronous dependencies."; };
22export var INVALID_TO_SELF_VALUE = "The toSelf function can only be applied when a constructor is " +
23 "used as service identifier";
24export var INVALID_DECORATOR_OPERATION = "The @inject @multiInject @tagged and @named decorators " +
25 "must be applied to the parameters of a class constructor or a class property.";
26export var ARGUMENTS_LENGTH_MISMATCH = function () {
27 var values = [];
28 for (var _i = 0; _i < arguments.length; _i++) {
29 values[_i] = arguments[_i];
30 }
31 return "The number of constructor arguments in the derived class " +
32 (values[0] + " must be >= than the number of constructor arguments of its base class.");
33};
34export var CONTAINER_OPTIONS_MUST_BE_AN_OBJECT = "Invalid Container constructor argument. Container options " +
35 "must be an object.";
36export var CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE = "Invalid Container option. Default scope must " +
37 "be a string ('singleton' or 'transient').";
38export var CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE = "Invalid Container option. Auto bind injectable must " +
39 "be a boolean";
40export var CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK = "Invalid Container option. Skip base check must " +
41 "be a boolean";
42export var MULTIPLE_PRE_DESTROY_METHODS = "Cannot apply @preDestroy decorator multiple times in the same class";
43export var MULTIPLE_POST_CONSTRUCT_METHODS = "Cannot apply @postConstruct decorator multiple times in the same class";
44export var ASYNC_UNBIND_REQUIRED = "Attempting to unbind dependency with asynchronous destruction (@preDestroy or onDeactivation)";
45export var POST_CONSTRUCT_ERROR = function (clazz, errorMessage) { return "@postConstruct error in class " + clazz + ": " + errorMessage; };
46export var PRE_DESTROY_ERROR = function (clazz, errorMessage) { return "@preDestroy error in class " + clazz + ": " + errorMessage; };
47export var ON_DEACTIVATION_ERROR = function (clazz, errorMessage) { return "onDeactivation() error in class " + clazz + ": " + errorMessage; };
48export var CIRCULAR_DEPENDENCY_IN_FACTORY = function (factoryType, serviceIdentifier) {
49 return "It looks like there is a circular dependency in one of the '" + factoryType + "' bindings. Please investigate bindings with" +
50 ("service identifier '" + serviceIdentifier + "'.");
51};
52export var STACK_OVERFLOW = "Maximum call stack size exceeded";
53//# sourceMappingURL=error_msgs.js.map
\No newline at end of file