Ok, I just checked this in. It has been added to the protocol module. Abdera abdera = new Abdera(); Error error = Error.create(abdera, 123, "Some error message"); Document<Error> doc = error.getDocument();
Once you have the Error object, you can use it to throw an exception: error.throwException(); This will throw a ProtocolException (extends RuntimeException) that pulls it's info from the Error object. This is useful mainly on the client side when an Error is returned and the client wishes to surface it using regular Java error handling. You can also use the Factory to create a standalone Error element. Error error = abdera.getFactory().newElement(Error.ERROR); The Error object extends ExtensibleElementWrapper so you can add extension elements. - James Chris Berry wrote: > Greetings, > I was wondering if it might make sense to formalize the Error document > that Abdera returns, so that we could use Document<Error> in clients and > servers?? > Thanks, > -- Chris > > S'all good --- [EMAIL PROTECTED] > > > >
