Package cascading.flow.stream.duct

Examples of cascading.flow.stream.duct.DuctException


      {
      handleException( exception, null );
      }
    catch( Throwable throwable )
      {
      handleException( new DuctException( "internal error", throwable ), null );
      }

    return iterables.pollFirstEntry();
    }
View Full Code Here


      {
      handleException( exception, incomingEntry );
      }
    catch( Throwable throwable )
      {
      handleException( new DuctException( "internal error: " + incomingEntry.getTuple().print(), throwable ), incomingEntry );
      }
    }
View Full Code Here

      {
      handleException( exception, incomingEntry );
      }
    catch( Throwable throwable )
      {
      handleException( new DuctException( "internal error: " + incomingEntry.getTuple().print(), throwable ), incomingEntry );
      }
    }
View Full Code Here

    {
    handleException( exception, incomingEntry );
    }
  catch( Throwable throwable )
    {
    handleException( new DuctException( "internal error: " + incomingEntry.getTuple().print(), throwable ), incomingEntry );
    }
  }
View Full Code Here

        trapCollector = flowProcess.openTrapForWrite( trap );
        trapCollectors.put( trap, trapCollector );
        }
      catch( IOException exception )
        {
        throw new DuctException( exception );
        }
      }

    return trapCollector;
    }
View Full Code Here

    if( throwable instanceof Error )
      throw (Error) throwable;
    else if( throwable instanceof RuntimeException )
      throw (RuntimeException) throwable;
    else
      throw new DuctException( message, throwable );
    }
View Full Code Here

      getTrapCollector( trap, flowProcess ).add( tupleEntry );
      }
    else
      {
      LOG.error( "failure resolving tuple entry", throwable );
      throw new DuctException( "failure resolving tuple entry", throwable );
      }

    flowProcess.increment( StepCounters.Tuples_Trapped, 1 );

    LOG.warn( "exception trap on branch: '" + trapName + "', for " + Util.truncate( print( tupleEntry ), 75 ), throwable );
View Full Code Here

          handleException( exception, null );
          continue;
          }
        catch( Throwable throwable )
          {
          handleException( new DuctException( "internal error", throwable ), null );
          continue;
          }

        next.receive( this, tupleEntry );
        }
View Full Code Here

        collector.setFields( fields );
        }
      }
    catch( IOException exception )
      {
      throw new DuctException( "failed opening sink", exception );
      }
    }
View Full Code Here

      {
      handleException( exception, tupleEntry );
      }
    catch( Throwable throwable )
      {
      handleException( new DuctException( "internal error: " + tupleEntry.getTuple().print(), throwable ), tupleEntry );
      }
    }
View Full Code Here

TOP

Related Classes of cascading.flow.stream.duct.DuctException

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.