From 7565e74cc261ecf62a30b35b12a28eaa4a93468e Mon Sep 17 00:00:00 2001 From: vpj-cd Date: Tue, 13 Oct 2009 02:22:08 +0000 Subject: [PATCH] Introduce WarehouseInvalidForOrgException https://sourceforge.net/tracker/index.php?func=detail&aid=2877521&group_id=176962&atid=879335 kind regards Victor Perez www.e-evolution.com --- .../WarehouseInvalidForOrgException.java | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 base/src/org/adempiere/exceptions/WarehouseInvalidForOrgException.java diff --git a/base/src/org/adempiere/exceptions/WarehouseInvalidForOrgException.java b/base/src/org/adempiere/exceptions/WarehouseInvalidForOrgException.java new file mode 100644 index 0000000000..806b052383 --- /dev/null +++ b/base/src/org/adempiere/exceptions/WarehouseInvalidForOrgException.java @@ -0,0 +1,40 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * This program is free software; you can redistribute it and/or modify it * + * under the terms version 2 of the GNU General Public License as published * + * by the Free Software Foundation. This program is distributed in the hope * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * + * See the GNU General Public License for more details. * + * You should have received a copy of the GNU General Public License along * + * with this program; if not, write to the Free Software Foundation, Inc., * + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * + * For the text or an alternative of this public license, you may reach us * + * Copyright (C) 2003-2007 e-Evolution,SC. All Rights Reserved. * + * Contributor(s): Victor Perez www.e-evolution.com * + *****************************************************************************/ +package org.adempiere.exceptions; + + +/** + * Throw when there is no Warehouse for Organization. + * @author victor.perez@e-evolution.com, www.e-evolution.com + *
  • FR [ 2457781 ] Introduce WarehouseInvalidForOrgException + *
  • https://sourceforge.net/tracker/index.php?func=detail&aid=2877521&group_id=176962&atid=879335 + */ +public class WarehouseInvalidForOrgException extends AdempiereException +{ + + /** + * + */ + private static final long serialVersionUID = -8637554073291880392L; + + /** + * @param productName M_Product Name + */ + public WarehouseInvalidForOrgException(String wname ,String oname) + { + super(wname+ " @M_Warehouse_ID@ @NotValid@ @AD_Org_ID@ "+ oname); + } +}