|
1 | 1 | namespace DpdtInject.Injector.Src.Excp
|
2 | 2 | {
|
| 3 | + /// <summary> |
| 4 | + /// Error types Dpdt aware of. |
| 5 | + /// </summary> |
3 | 6 | public enum DpdtExceptionTypeEnum
|
4 | 7 | {
|
| 8 | + /// <summary> |
| 9 | + /// Unknown type. |
| 10 | + /// </summary> |
5 | 11 | NotSpecified,
|
| 12 | + |
| 13 | + /// <summary> |
| 14 | + /// General error. Something went really awful. |
| 15 | + /// </summary> |
6 | 16 | GeneralError,
|
| 17 | + |
| 18 | + /// <summary> |
| 19 | + /// Internal error of the Dpdt logic. |
| 20 | + /// </summary> |
7 | 21 | InternalError,
|
| 22 | + |
| 23 | + /// <summary> |
| 24 | + /// A required constructor argument is missing. |
| 25 | + /// </summary> |
8 | 26 | ConstructorArgumentMiss,
|
| 27 | + |
| 28 | + /// <summary> |
| 29 | + /// Duplicate binding found during resolution. |
| 30 | + /// </summary> |
9 | 31 | DuplicateBinding,
|
| 32 | + |
| 33 | + /// <summary> |
| 34 | + /// Such binding is unavailable. |
| 35 | + /// </summary> |
10 | 36 | NoBindingAvailable,
|
| 37 | + |
| 38 | + /// <summary> |
| 39 | + /// Circular dependency in the binding tree is found. |
| 40 | + /// </summary> |
11 | 41 | CircularDependency,
|
| 42 | + |
| 43 | + /// <summary> |
| 44 | + /// Dpdt cluster type should be partial to make Dpdt source generator succeeds. |
| 45 | + /// </summary> |
12 | 46 | TargetClassMustBePartial,
|
| 47 | + |
| 48 | + /// <summary> |
| 49 | + /// For scoped binding scope object must exists. |
| 50 | + /// </summary> |
13 | 51 | CustomScopeObjectDoesNotFound,
|
14 | 52 |
|
| 53 | + /// <summary> |
| 54 | + /// Incorrent binding in the from clause. |
| 55 | + /// For example, binding from dynamic is not allowed. |
| 56 | + /// Also, binding target type should implement binding from type |
| 57 | + /// and allow to cast itself to binding from type. |
| 58 | + /// </summary> |
15 | 59 | IncorrectBinding_IncorrectFrom,
|
| 60 | + |
| 61 | + /// <summary> |
| 62 | + /// Incorrect binding in the to clause. |
| 63 | + /// </summary> |
16 | 64 | IncorrectBinding_IncorrectTarget,
|
| 65 | + |
| 66 | + /// <summary> |
| 67 | + /// Incorrect return type of the method of a factory type. |
| 68 | + /// </summary> |
17 | 69 | IncorrectBinding_IncorrectReturnType,
|
| 70 | + |
| 71 | + /// <summary> |
| 72 | + /// Incorrent binding statement. Possibly, incomplete. |
| 73 | + /// </summary> |
18 | 74 | IncorrectBinding_IncorrectConfiguration,
|
19 | 75 |
|
| 76 | + /// <summary> |
| 77 | + /// Factory type cannot be built. |
| 78 | + /// </summary> |
20 | 79 | CannotBuildFactory,
|
| 80 | + |
| 81 | + /// <summary> |
| 82 | + /// Bind method of the Dpdt cluster type must be parameter-less. |
| 83 | + /// </summary> |
21 | 84 | BindMethodHasArguments,
|
22 | 85 |
|
| 86 | + /// <summary> |
| 87 | + /// Incorrent binding statement. Possibly, incomplete. |
| 88 | + /// </summary> |
23 | 89 | IncorrectBinding_IncorrectClause,
|
| 90 | + |
| 91 | + /// <summary> |
| 92 | + /// A problem found in the settings scope of the binding. |
| 93 | + /// </summary> |
24 | 94 | IncorrectBinding_IncorrectSetting,
|
25 | 95 |
|
| 96 | + /// <summary> |
| 97 | + /// Local binding has been found, but it's forbidden by specific setting. |
| 98 | + /// </summary> |
26 | 99 | LocalBindingFound,
|
| 100 | + |
| 101 | + /// <summary> |
| 102 | + /// Dpdt cluster type cannot be used as a target for a binding statement. |
| 103 | + /// </summary> |
27 | 104 | BindToClusterType
|
28 | 105 | }
|
29 | 106 | }
|
0 commit comments