H
Homa
Hi All,
The question I'm asking applies to any general application design. I'm
just using the project I'm working on as an example.
I'm writing an application with a C# wrapper of DDEML, and I created
an exception dmlException for the DDEML
errors. Currently I'm placing the
[i:ec17216d38]dmlException[/i:ec17216d38] and
[i:ec17216d38]dmlModule[/i:ec17216d38] (the wrapper) together in a
project called ddeml.
But now I'm thinking of centralize the exceptions to one location, say
[b:ec17216d38]myAppException[/b:ec17216d38] project so that other
part of the application can use all application exception by adding
only one reference. But in the
[i:ec17216d38]dmlException[/i:ec17216d38], one of the constructor
takes an Enum [i:ec17216d38]DMLERR[/i:ec17216d38] argument with is
defined within the [i:ec17216d38]dmlModule[/i:ec17216d38]. This would
cause a circular reference. How should I solve this?
I'm thinking of centralize the exceptions to one project because I
don't feel like the UI Component need a reference to the
[i:ec17216d38]dmlModule[/i:ec17216d38] or other low-level modules.
Am I reasonable in doing these?
Thanks for concern,
Homa Wong
The question I'm asking applies to any general application design. I'm
just using the project I'm working on as an example.
I'm writing an application with a C# wrapper of DDEML, and I created
an exception dmlException for the DDEML
errors. Currently I'm placing the
[i:ec17216d38]dmlException[/i:ec17216d38] and
[i:ec17216d38]dmlModule[/i:ec17216d38] (the wrapper) together in a
project called ddeml.
But now I'm thinking of centralize the exceptions to one location, say
[b:ec17216d38]myAppException[/b:ec17216d38] project so that other
part of the application can use all application exception by adding
only one reference. But in the
[i:ec17216d38]dmlException[/i:ec17216d38], one of the constructor
takes an Enum [i:ec17216d38]DMLERR[/i:ec17216d38] argument with is
defined within the [i:ec17216d38]dmlModule[/i:ec17216d38]. This would
cause a circular reference. How should I solve this?
I'm thinking of centralize the exceptions to one project because I
don't feel like the UI Component need a reference to the
[i:ec17216d38]dmlModule[/i:ec17216d38] or other low-level modules.
Am I reasonable in doing these?
Thanks for concern,
Homa Wong