public FaultData(QName fault, Element faultMsg, OVarType faultVarType, OBase location) { this(fault, location, null); assert faultMsg != null; assert faultVarType != null; assert faultVarType instanceof OMessageVarType || faultVarType instanceof OElementVarType; _faultMsg = new SerializableElement(faultMsg); _faultVarType = faultVarType; }
/** * Return potential message associated with fault. * Null if no fault data. * @return fault message Element */ public Element getFaultMessage() { return (_faultMsg == null) ? null : _faultMsg.getElement(); }