[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[p2-dev] Use of ProvisionException.REPOSITORY_NOT_FOUND?

When testing repository loading and using invalid URI's to test errors - tests fail if the Status.getCode() is not REPOSITORY_NOT_FOUND.
I saw one comment that said that "this status code is expected, since all others will be logged".

I wonder how the status codes should be used? There are codes for ACCESS denied, INVALID location, etc. Wouldn't it be more appropriate to use those when the
cause is known? I now have statuses with more details working, and I selected what I thought were suitable codes from ProvisionException only to find that tests fail...

Can someone shed some light on how it is supposed to work?

Henrik Lindberg