How do you serialize a subclass of Exception?
Here is my exception:
@XmlType
public static class ValidationFault extends Exception {
public ValidationFault() {
}
}
I have tried all sorts of variations on using @XmlTransient and @XmlAccessorType, but JAXB continually tries to serialize the getStackTrace/setStackTrace pair, which can't be done.
How do I tell JAXB to ignore all the fields on the parent?