More on that:

actually, by inspecting andromda's output, I could
figure out that the Exception classes where indeed
generated in the common subproject. So far so good,
but they aren't *used* in my services. I still get the
same stuff generated by AndroMDA, e.g.:

public fractals.psychos.core.system.entity.UserGroup
getUserGroup(java.lang.String name)
{
  if (name == null)
  {
    throw new IllegalArgumentException(
       
"fractals.psychos.core.services.SystemServices.getUserGroup(java.lang.String
name) - 'name' can not be null");
  }
  try
  {
    return this.handleGetUserGroup(name);
  }
  catch (Throwable th)
  {
    throw new
fractals.psychos.core.services.SystemServicesException(
        "Error performing
'fractals.psychos.core.services.SystemServices.getUserGroup(java.lang.String
name)' --> " + th,
        th);
  }
}
...which, again, forces me to unwrap the
SystemServicesException... I'm pretty sure this isn't
the way it oughta be though

bernard
--- Bernard Sirius <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I'm trying to add exceptions in my model, as
> explained
> in
>
http://team.andromda.org/docs/andromda-spring-cartridge/howto7.html,
> but that doesn't seem to work...
> 
> I really need it, because I need to throw specific
> Runtime exceptions (NoSuchUser, -UserGroup,... and
> the
> like), and now the Base Services only throw generic
> exceptions, which I'd have to "unwrap" (call
> exc.getCause()) to discover the original
> exception...
> very unpleasant!
> 
> any idea of what could cause the exception classes
> not
> being generated, nor the proper throws clauses?
> 
> bernard
> 
> 
>               
> __________________________________ 
> Do you Yahoo!? 
> Yahoo! Mail - 250MB free storage. Do more. Manage
> less. 
> http://info.mail.yahoo.com/mail_250
> 
> 
>
-------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT
> Products from real users.
> Discover which products truly live up to the hype.
> Start reading now.
>
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Andromda-user mailing list
> Andromda-user@lists.sourceforge.net
>
https://lists.sourceforge.net/lists/listinfo/andromda-user
> 



                
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to