Package uk.org.ogsadai.activity

Examples of uk.org.ogsadai.activity.ActivityUserException


                iterativeStageComplete();
                return;
            }
            if (block != ControlBlock.LIST_BEGIN)
            {
                throw new ActivityUserException(
                        new SequenceStartMissingException());
            }
            BytesInputStream bytes = new BytesInputStream(INPUT_DATA, mInput);
            ObjectInputStream input = new ObjectInputStream(bytes);
            mOutput.write(input.readObject());
View Full Code Here


                        mErrorAt = ((Integer)block);
                    }
                }
                catch (ClassCastException e)
                {
                    throw new ActivityUserException(e);
                }
                catch (PipeIOException e)
                {
                    throw new ActivityPipeProcessingException(e);
                }
View Full Code Here

            ProcessingStatus status = gateway.getStatus();
            LOG.debug("Waiting for root gateway to initialise.");
            while (!status.isInitialised())
            {
                if (status.isError()) {
                    throw new ActivityUserException(
                            new RequestInitialisationFailedException());
                }
                Thread.sleep(pollInterval);
                status = gateway.getStatus();
            }
View Full Code Here

                {
                    return new URL(values[i + 1].trim());
                }
                catch (MalformedURLException e)
                {
                    throw new ActivityUserException(
                            new UnknownTransferException(transferName));
                }
            }
        }
       
        // if the transfer hasn't been found
        throw new ActivityUserException(
                new UnknownTransferException(transferName));
    }
View Full Code Here

            //mAssociatorOutput.write(ControlBlock.LIST_BEGIN);
            //if(mSummaryOutput!= null)
            //  mSummaryOutput.write(ControlBlock.LIST_BEGIN);
          }
          catch(Throwable t) {
            throw new ActivityUserException(t);
          }
  }
View Full Code Here

          catch (PipeTerminatedException e)
          {
              throw new ActivityTerminatedException();
          }
          catch (Exception exc) {
            throw new ActivityUserException(exc);
          }
  }
View Full Code Here

        {
            throw new ActivityTerminatedException();
        }
        catch (Exception e)
        {
            throw new ActivityUserException(e);
        }
    }
View Full Code Here

        {
            throw new ActivityTerminatedException();
        }
        catch (ScriptException e)
        {
            throw new ActivityUserException(e);
        }
    }
View Full Code Here

        {
            throw new ActivityTerminatedException();
        }
        catch (ScriptException e)
        {
            throw new ActivityUserException(e);
        }
    }
View Full Code Here

        {
            engine.eval(script);
        }
        catch (ScriptException e)
        {
            throw new ActivityUserException(e);
        }
        Invocable inv = (Invocable)engine;
        ScriptActivity activity = inv.getInterface(ScriptActivity.class);
        try
        {
            LOG.debug("Processing script");
            activity.process(mInputs, mOutputs);
        }
        catch (Throwable e)
        {
            LOG.debug("Caught exception during processing: "
                    + e.getClass().getName() + ": " + e.getMessage());
            throw new ActivityUserException(e);
        }
    }
View Full Code Here

TOP

Related Classes of uk.org.ogsadai.activity.ActivityUserException

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.