Package q_impress.pmi.lib.services

Examples of q_impress.pmi.lib.services.ServiceException


    String message = null;
   
    if (this.target == null) message = "target not specified";
    if (this.outStream == null) message = "stream not specified";
   
    if (message != null) throw new ServiceException(this, "Cannot initialize service, " + message + ".");
  }
View Full Code Here


   
    try {
      SavingProtocol_1_0 protocol = SavingProtocol_1_0.aspectOf(this);
      protocol.save(this.outStream, this.target);
    } catch (LoadSaveException e) {
      throw new ServiceException(this, "Unable to save project.", e);
    }
  }
View Full Code Here

    String message = null;
   
    if (this.inStream == null) message = "stream not specified";
    if (this.locationSolver == null) message = "no location solver specified";
   
    if (message != null) throw new ServiceException(this, "Cannot initialize service, " + message + ".");
  }
View Full Code Here

   
    try {
      LoadingProtocol_1_0 protocol = LoadingProtocol_1_0.aspectOf(this);
      this.loadedResource = protocol.load(this.inStream, this.locationSolver);
    } catch (LoadSaveException e) {
      throw new ServiceException(this, "Unable to load resource.", e);
    }
  }
View Full Code Here

TOP

Related Classes of q_impress.pmi.lib.services.ServiceException

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.