how to treat Exceptions in ScmResults?

View: New views
1 Messages — Rating Filter:   Alert me  

how to treat Exceptions in ScmResults?

by struberg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi!

I'm currently implementing the maven-scm-providers-jgit and like to know how others did handle e.g. CheckOutScmResult for Java implemented SCM connectors. Especially what to do if an Exception occurred? How do you transport this nested Exception? fill only e.getMessage() or is there a trick I miss?

Currently I'm doing
> return new CheckOutScmResult("", "JGit clone failed.", e.getMessage(),  false );
but this doesn't feel ok somehow.

txs and LieGrue,
strub