1 | export var DUPLICATED_INJECTABLE_DECORATOR = "Cannot apply @injectable decorator multiple times.";
|
2 | export var DUPLICATED_METADATA = "Metadata key was used more than once in a parameter:";
|
3 | export var NULL_ARGUMENT = "NULL argument";
|
4 | export var KEY_NOT_FOUND = "Key Not Found";
|
5 | export var AMBIGUOUS_MATCH = "Ambiguous match found for serviceIdentifier:";
|
6 | export var CANNOT_UNBIND = "Could not unbind serviceIdentifier:";
|
7 | export var NOT_REGISTERED = "No matching bindings found for serviceIdentifier:";
|
8 | export var MISSING_INJECTABLE_ANNOTATION = "Missing required @injectable annotation in:";
|
9 | export var MISSING_INJECT_ANNOTATION = "Missing required @inject or @multiInject annotation in:";
|
10 | export 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 | };
|
15 | export var CIRCULAR_DEPENDENCY = "Circular dependency found:";
|
16 | export var NOT_IMPLEMENTED = "Sorry, this feature is not fully implemented yet.";
|
17 | export var INVALID_BINDING_TYPE = "Invalid binding type:";
|
18 | export var NO_MORE_SNAPSHOTS_AVAILABLE = "No snapshot available to restore.";
|
19 | export var INVALID_MIDDLEWARE_RETURN = "Invalid return type in middleware. Middleware must return!";
|
20 | export var INVALID_FUNCTION_BINDING = "Value provided to function binding must be a function!";
|
21 | export var LAZY_IN_SYNC = function (key) { return "You are attempting to construct '" + key + "' in a synchronous way\n but it has asynchronous dependencies."; };
|
22 | export var INVALID_TO_SELF_VALUE = "The toSelf function can only be applied when a constructor is " +
|
23 | "used as service identifier";
|
24 | export 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.";
|
26 | export 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 | };
|
34 | export var CONTAINER_OPTIONS_MUST_BE_AN_OBJECT = "Invalid Container constructor argument. Container options " +
|
35 | "must be an object.";
|
36 | export var CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE = "Invalid Container option. Default scope must " +
|
37 | "be a string ('singleton' or 'transient').";
|
38 | export var CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE = "Invalid Container option. Auto bind injectable must " +
|
39 | "be a boolean";
|
40 | export var CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK = "Invalid Container option. Skip base check must " +
|
41 | "be a boolean";
|
42 | export var MULTIPLE_PRE_DESTROY_METHODS = "Cannot apply @preDestroy decorator multiple times in the same class";
|
43 | export var MULTIPLE_POST_CONSTRUCT_METHODS = "Cannot apply @postConstruct decorator multiple times in the same class";
|
44 | export var ASYNC_UNBIND_REQUIRED = "Attempting to unbind dependency with asynchronous destruction (@preDestroy or onDeactivation)";
|
45 | export var POST_CONSTRUCT_ERROR = function (clazz, errorMessage) { return "@postConstruct error in class " + clazz + ": " + errorMessage; };
|
46 | export var PRE_DESTROY_ERROR = function (clazz, errorMessage) { return "@preDestroy error in class " + clazz + ": " + errorMessage; };
|
47 | export var ON_DEACTIVATION_ERROR = function (clazz, errorMessage) { return "onDeactivation() error in class " + clazz + ": " + errorMessage; };
|
48 | export 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 | };
|
52 | export var STACK_OVERFLOW = "Maximum call stack size exceeded";
|
53 |
|
\ | No newline at end of file |