Using Poseidon, I have added a class and given it the stereotype 
<ApplicationException>.  I then created a dependency between a method from my 
service and this exception.  For methods in Poseidon, you can add a "raised 
signal" which is set to exception.  The generated code creates the method and 
throws my user-defined exception, but the exception class itself is not 
generated (I had to create it by hand).



eg.



In the model I have a service MyService and have created a method findByName(). 
 A dependency is made between this method and MyException (a class with the 
stereotype <ApplicationException>).  The generated code produces:



public Object findByName() throws MyException but MyException is not generated.
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=1757#1757
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to