[OpenVPMS Developers] [JIRA] (ESCI-9) Add exception to indicate invalid order

Message from Tim Anderson (Created) (JIRA) jira@openvpms.org

Add exception to indicate invalid order ---------------------------------------

Key: ESCI-9 URL: https://openvpms.atlassian.net/browse/ESCI-9 Project: e-Supply Chain Interface Issue Type: Improvement Components: Ordering Affects Versions: 1.0-beta-3 Reporter: Tim Anderson Assignee: Tim Anderson Priority: Minor

A means is required to raise an error for a submitted order to indicate it is invalid, without having to generate an OrderResponseSimple. This can be done by adding a new exception e.g. {noformat} public interface OrderService {

/** * Submits an order. * * @param order the order to submit * @throws DuplicateOrderException if the order has a duplicate identifier to one already submitted * @throws InvalidOrderException if the order is invalid */ @WebMethod void submitOrder(@WebParam(name = "Order") Order order) throws DuplicateOrderException, InvalidOrderException; } {noformat} where InvalidOrderException is defined as: {noformat} @WebFault(name = "InvalidOrder", targetNamespace = "http://openvpms.org/esci") public class InvalidOrderException extends ServiceException { ... } {noformat}

-- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://openvpms.atlassian.net/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira

_______________________________________________ OpenVPMS Developers Mailing List developers@lists.openvpms.org To unsubscribe or change your subscription visit: http://lists.openvpms.org/listinfo/developers Posts from this mailing list can be viewed online and replied to in the OpenVPMS Developer's forum- http://tinyurl.com/openvdf

Syndicate content