Package com.openbravo.basic

Examples of com.openbravo.basic.BasicException


           } else {
             return new MessageInf(MessageInf.SGN_SUCCESS, AppLocal.getIntString("message.syncusersok"), AppLocal.getIntString("message.syncusersinfo", npCustomers));
           }
          
        } catch (ServiceException e) {           
            throw new BasicException(AppLocal.getIntString("message.serviceexception"), e);
        } catch (RemoteException e){
            throw new BasicException(AppLocal.getIntString("message.remoteexception"), e);
        } catch (MalformedURLException e){
            throw new BasicException(AppLocal.getIntString("message.malformedurlexception"), e);
        }
    }
View Full Code Here


                remoteUsers = externalsales.getUsersBySteps(step);
//                remoteUsers = externalsales.getUsers();
                step++;
     
          if (remoteUsers == null){
              throw new BasicException(AppLocal.getIntString("message.returnnull")+" > Customers null");
          }
         
          // if it found users
          if (remoteUsers.length > 0 ) {
View Full Code Here

        AltEncrypter cypher = new AltEncrypter("cypherkey" + user);
        try {
            String password = cypher.decrypt(WSInfo.getWspassword().substring(6));
            wsLogin.setPassword(password);
        } catch (NullPointerException npe) {
            throw new BasicException(AppLocal.getIntString("message.propsnotdefined"));
        }

        if (wsPosid == null || wsPosid.equals("")) {
            throw new BasicException(AppLocal.getIntString("message.propsnotdefined"));
        } else {

            if (wsURL.equals("") || wsURL == null) {
                throw new BasicException(AppLocal.getIntString("message.urlnotdefined"));
            } else {
            }
        }

        categoriesProxy = new VM_CategoriesProxy(wsURL + CategoriesURL);
View Full Code Here

               
            } else {
            

            }
             throw new BasicException();
           // return null;
         }
        String jName = m_jName.getText();
        if (TicketInfo.isWS()) {
          jName = jName.toUpperCase();
View Full Code Here

                } else {
                    newindex = m_aData.size() - 1;
                }
                return newindex;
            } else {
                throw new BasicException(LocalRes.getIntString("exception.nodelete"));
            }    
        } else {
            // indice no valido
            throw new BasicException(LocalRes.getIntString("exception.nodelete"));
        }
    }
View Full Code Here

                    fireDataContentsChanged(newindex, index);
                }                       
                return newindex;
            } else {
                // fallo la actualizacion
                throw new BasicException(LocalRes.getIntString("exception.noupdate"));
            }
        } else {
            // registro invalido
            throw new BasicException(LocalRes.getIntString("exception.noupdate"));
        }
    }
View Full Code Here

            
            // Disparamos la inserccion
            fireDataIntervalAdded(newindex, newindex);
            return newindex;
        } else {
            throw new BasicException(LocalRes.getIntString("exception.noinsert"));
        }      
    }
View Full Code Here

    }

    public void editAttributes(String attsetid, String attsetinstid) throws BasicException {

        if (attsetid == null) {
            throw new BasicException(AppLocal.getIntString("message.attsetnotexists"));
        } else {

            this.attsetid = attsetid;
            this.attInstanceId = null;
            this.attInstanceDescription = null;

            this.ok = false;

            // get attsetinst values
            AttributeSetInfo asi = (AttributeSetInfo) attsetSent.find(attsetid);

            if (asi == null) {
                throw new BasicException(AppLocal.getIntString("message.attsetnotexists"));
            }

            setTitle(asi.getName());

            List<AttributeInstInfo> attinstinfo = attsetinstid == null
View Full Code Here

           } else {
             return new MessageInf(MessageInf.SGN_SUCCESS, AppLocal.getIntString("message.syncproductsok"), AppLocal.getIntString("message.syncproductsinfo", npProducts));
           }
          
        } catch (ServiceException e) {           
            throw new BasicException(AppLocal.getIntString("message.serviceexception"), e);
        } catch (RemoteException e){
            //e.printStackTrace();
            throw new BasicException(AppLocal.getIntString("message.remoteexception"), e);
        } catch (MalformedURLException e){
            throw new BasicException(AppLocal.getIntString("message.malformedurlexception"), e);
        }
    }
View Full Code Here

      HashMap<Double, String> remoteTaxes = externalsales.getTaxes();

       Produit[] products = externalsales.getProductsCatalog();

           if (products == null) {
               throw new BasicException(AppLocal.getIntString("message.returnnull")+" > Products null");
           }


             ArrayList<String> prodNotToSync = new ArrayList<String>();
           if (products.length > 0){
View Full Code Here

TOP

Related Classes of com.openbravo.basic.BasicException

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.