/** * @param messageText - this will appear as the Text in the Reason information item of SOAP Fault * @param faultCode - this will appear as the Value in the Code information item of SOAP Fault * @param cause - this will appear under the Detail information item of SOAP Fault */ public AxisFault(String messageText, String faultCode, Throwable cause) { this(messageText, cause); setFaultCode(faultCode); }
/** * @param messageText - this will appear as the Text in the Reason information item of SOAP Fault * @param faultCode - this will appear as the Value in the Code information item of SOAP Fault * @param cause - this will appear under the Detail information item of SOAP Fault */ public AxisFault(String messageText, QName faultCode, Throwable cause) { this(messageText, cause); setFaultCode(faultCode); }
/** * Constructor * * @param faultCode - fault code of the message as a QName * @param faultReason - the reason for the fault. The language will be defaulted to 'en' * @param cause embedded fault which caused this one */ public AxisFault(QName faultCode, String faultReason, Throwable cause) { this(faultReason, cause); setFaultCode(faultCode); }
/** * Constructor * * @param messageText this will appear as the Text in the Reason information item of SOAP Fault * @param faultCode this will appear as the Value in the Code information item of SOAP Fault */ public AxisFault(String messageText, QName faultCode) { this(messageText); setFaultCode(faultCode); }
/** * Constructor. * * @param messageText - this will appear as the Text in the Reason information item of SOAP Fault * @param faultCode - this will appear as the Value in the Code information item of SOAP Fault */ public AxisFault(String messageText, String faultCode) { this(messageText); setFaultCode(faultCode); }
/** * @param messageText - this will appear as the Text in the Reason information item of SOAP Fault * @param faultCode - this will appear as the Value in the Code information item of SOAP Fault * @param cause - this will appear under the Detail information item of SOAP Fault */ public AxisFault(String messageText, QName faultCode, Throwable cause) { this(messageText, cause); setFaultCode(faultCode); }
/** * Constructor. * * @param messageText - this will appear as the Text in the Reason information item of SOAP Fault * @param faultCode - this will appear as the Value in the Code information item of SOAP Fault */ public AxisFault(String messageText, String faultCode) { this(messageText); setFaultCode(faultCode); }
/** * Constructor * * @param faultCode - fault code of the message as a QName * @param faultReason - the reason for the fault. The language will be defaulted to 'en' * @param cause embedded fault which caused this one */ public AxisFault(QName faultCode, String faultReason, Throwable cause) { this(faultReason, cause); setFaultCode(faultCode); }
/** * @param messageText - this will appear as the Text in the Reason information item of SOAP Fault * @param faultCode - this will appear as the Value in the Code information item of SOAP Fault * @param cause - this will appear under the Detail information item of SOAP Fault */ public AxisFault(String messageText, String faultCode, Throwable cause) { this(messageText, cause); setFaultCode(faultCode); }
/** * Constructor * * @param messageText this will appear as the Text in the Reason information item of SOAP Fault * @param faultCode this will appear as the Value in the Code information item of SOAP Fault */ public AxisFault(String messageText, QName faultCode) { this(messageText); setFaultCode(faultCode); }
/** * Constructor * * @param faultCode - fault code of the message as a QName * @param faultSubCodes - list sub fault codes as a list if QNames * @param faultReason - the reason for the fault. The language will be defaulted to 'en' * @param cause embedded fault which caused this one */ public AxisFault(QName faultCode, List<QName> faultSubCodes, String faultReason, Throwable cause) { this(faultReason, cause); setFaultCode(faultCode); setFaultSubCodes(faultSubCodes); }
/** * Constructor * * @param faultCode - fault code of the message as a QName * @param faultSubCodes - list sub fault codes as a list if QNames * @param faultReason - the reason for the fault. The language will be defaulted to 'en' * @param cause embedded fault which caused this one */ public AxisFault(QName faultCode, List<QName> faultSubCodes, String faultReason, Throwable cause) { this(faultReason, cause); setFaultCode(faultCode); setFaultSubCodes(faultSubCodes); }
/** * Creates an AxisFault. */ public static AxisFault createAxisFault(Exception e) { AxisFault fault; Throwable cause = e.getCause(); if (cause != null) { fault = new AxisFault(e.getMessage(), cause); } else { fault = new AxisFault(e.getMessage()); } fault.setDetail(DataServiceFault.extractFaultMessage(e)); fault.setFaultCode(new QName(DBConstants.WSO2_DS_NAMESPACE, DataServiceFault.extractFaultCode(e))); return fault; }
AxisFault fault = new AxisFault(Messages.getMessage("servicenotfoundforepr", ((toEPR != null) ? toEPR.getAddress() : ""))); fault.setFaultCode(org.apache.axis2.namespace.Constants.FAULT_CLIENT); throw fault; ((toEPR != null) ? toEPR.getAddress() : ""), msgContext.getWSAAction())); fault.setFaultCode(org.apache.axis2.namespace.Constants.FAULT_CLIENT); throw fault; ((toEPR != null) ? toEPR.getAddress() : ""), msgContext.getWSAAction())); fault.setFaultCode(org.apache.axis2.namespace.Constants.FAULT_CLIENT); throw fault;
AxisFault fault = new AxisFault(Messages.getMessage("servicenotfoundforepr", ((toEPR != null) ? toEPR.getAddress() : ""))); fault.setFaultCode(org.apache.axis2.namespace.Constants.FAULT_CLIENT); throw fault; ((toEPR != null) ? toEPR.getAddress() : ""), msgContext.getWSAAction())); fault.setFaultCode(org.apache.axis2.namespace.Constants.FAULT_CLIENT); throw fault; ((toEPR != null) ? toEPR.getAddress() : ""), msgContext.getWSAAction())); fault.setFaultCode(org.apache.axis2.namespace.Constants.FAULT_CLIENT); throw fault;
list.add(new QName(addressingNamespace, AddressingConstants.FAULT_ACTION_NOT_SUPPORTED, AddressingConstants.WSA_DEFAULT_PREFIX)); tmp.setFaultCode(faultCode); tmp.setFaultSubCodes(list);
AxisFault axisFault = new AxisFault(e.getMessage(), faultContext); axisFault.setDetail(e.getDetail()); axisFault.setFaultCode(e.getFaultCode()); axisFault.setFaultAction(e.getFaultAction()); axisFault.setFaultType(e.getFaultType());