Package nl.clockwork.mule.ebms.model.ebxml

Examples of nl.clockwork.mule.ebms.model.ebxml.Error


    return createError(location,errorCode,description,Constants.EBMS_DEFAULT_LANGUAGE,severity);
  }
 
  public static Error createError(String location, String errorCode, String description, String language, SeverityType severity)
  {
    Error error = new Error();
    error.setCodeContext(Constants.EBMS_ERROR_CODE_CONTEXT);
    error.setLocation(location);
    error.setErrorCode(errorCode);
    error.setDescription(new Description());
    error.getDescription().setLang(language);
    error.getDescription().setValue(description);
    error.setSeverity(severity);
    return error;
  }
View Full Code Here


      errorList.setVersion(Constants.EBMS_VERSION);
      errorList.setMustUnderstand(true);
      errorList.setHighestSeverity(SeverityType.ERROR);

      Error error = (Error)message.getProperty(Constants.EBMS_ERROR);
      if (error == null)
        EbMSMessageUtils.createError(Constants.EbMSErrorLocation.UNKNOWN.location(),Constants.EbMSErrorCode.UNKNOWN.errorCode(),"An unknown error occurred!");
      errorList.getError().add(error);
     
      message.setPayload(new EbMSMessageError(messageHeader,errorList));
View Full Code Here

TOP

Related Classes of nl.clockwork.mule.ebms.model.ebxml.Error

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.