Package lib.exceptions

Examples of lib.exceptions.CommunicationException


      throws ObjectNotFoundException, RepositoryException, CommunicationException,
      TransactionException {
    try {
      return facade.searchSpecialitiesByCode(numSpeciality);
    } catch (RemoteException e) {
      throw new CommunicationException(e.getMessage());
    }
  }
View Full Code Here


      TransactionException, ObjectNotFoundException, CommunicationException,
      ObjectNotValidException {
    try {
      facade.updateMedicalSpeciality(speciality);
    } catch (RemoteException e) {
      throw new CommunicationException(e.getMessage());
    }
  }
View Full Code Here

      ObjectAlreadyInsertedException, ObjectNotValidException, TransactionException,
      CommunicationException, RepositoryException {
        try {
          facade.insert(diseaseType);
        } catch (RemoteException ex) {
          throw new CommunicationException(ex.getMessage());
        }
  }
View Full Code Here

      facade= (IFacadeRMITargetAdapter) Naming.lookup(server);
            System.out.println("Remote DisqueSaude found");

        } catch (java.rmi.RemoteException rmiEx) {
            rmiInitExceptionHandling(rmiEx);
            throw new CommunicationException(rmiEx.getMessage());
        } catch (java.rmi.NotBoundException rmiEx) {
            rmiInitExceptionHandling(rmiEx);
            throw new CommunicationException(rmiEx.getMessage());
        } catch (java.net.MalformedURLException rmiEx) {
            rmiInitExceptionHandling(rmiEx);
            throw new CommunicationException(rmiEx.getMessage());
        }
  }
View Full Code Here

  public void updateComplaint(Complaint q) throws TransactionException, RepositoryException,
      ObjectNotFoundException, ObjectNotValidException, CommunicationException {
    try {
      facade.updateComplaint(q);
    } catch (RemoteException e) {
      throw new CommunicationException(e.getMessage());
    }
  }
View Full Code Here

  public IteratorDsk searchSpecialitiesByHealthUnit(Long code) throws ObjectNotFoundException,
      RepositoryException, CommunicationException, TransactionException {
    try {
      return facade.searchSpecialitiesByHealthUnit(code);
    } catch (RemoteException e) {
      throw new CommunicationException(e.getMessage());
    }
  }
View Full Code Here

  public Complaint searchComplaint(Long code) throws RepositoryException, ObjectNotFoundException,
      CommunicationException, TransactionException {
    try {
      return facade.searchComplaint(code);
    } catch (RemoteException e) {
      throw new CommunicationException(e.getMessage());
    }
  }
View Full Code Here

  public DiseaseType searchDiseaseType(Long code) throws RepositoryException,
      ObjectNotFoundException, CommunicationException, TransactionException {
    try {
      return facade.searchDiseaseType(code);
    } catch (RemoteException e) {
      throw new CommunicationException(e.getMessage());
    }
  }
View Full Code Here

  public IteratorDsk searchHealthUnitsBySpeciality(Long code) throws ObjectNotFoundException,
      RepositoryException, TransactionException, CommunicationException {
    try {
      return facade.searchHealthUnitsBySpeciality(code);
    } catch (RemoteException e) {
      throw new CommunicationException(e.getMessage());
    }
  }
View Full Code Here

  public IteratorDsk getSpecialityList() throws RepositoryException, ObjectNotFoundException,
      CommunicationException, TransactionException {
    try {
      return facade.getSpecialityList();
    } catch (RemoteException e) {
      throw new CommunicationException(e.getMessage());
    }
  }
View Full Code Here

TOP

Related Classes of lib.exceptions.CommunicationException

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.