Package com.hp.hpl.jena.shared

Examples of com.hp.hpl.jena.shared.JenaException


        }
        return old == null ? null : old.getName();
      }
      catch (final ClassNotFoundException e)
      {
        throw new JenaException(e);
      }
    }
View Full Code Here


  public N3ExternalTestsCom(String testName, String filename)
  {
    super(testName) ;
    testFile = findFile(filename) ;
    if ( testFile == null )
      throw new JenaException("No such file: "+filename) ;
    TupleSet tests = null ;
    try {
      Reader r = new BufferedReader(new FileReader(testFile)) ;
      tests = new TupleSet(r) ;
    } catch (IOException ioEx)
View Full Code Here

  @Override
    public void warning(Exception e) {
//    logger.warn( toString() + " " + e.getMessage(), e );
        System.out.println(new String(tmpOut.toString()));
       
    throw new JenaException( e );
  }
View Full Code Here

  }

  @Override
    public void fatalError(Exception e) {
    error(e);
    throw new JenaException(e);
  }
View Full Code Here

            } catch (RuntimeException re) {
                re.printStackTrace();
                throw re;
            } catch (Exception e) {
                e.printStackTrace();
                throw new JenaException( e );

            }
    }
View Full Code Here

    /**
        We object strongly to null labels: for example, they make .equals flaky.
    */
    public static Node create( NodeMaker maker, Object label )
        {
        if (label == null) throw new JenaException( "Node.make: null label" );
        return maker.construct( label ) ;
        }
View Full Code Here

     */
    public static File getScratchDirectory( String prefix )
    {
        File result = new File( getTempDirectory(), prefix + randomNumber() );
        if (result.exists()) return getScratchDirectory( prefix );
        if (result.mkdir() == false) throw new JenaException( "mkdir failed on " + result );
        result.deleteOnExit();
        return result;  
    }
View Full Code Here

     *         in this composition
     */
    public Graph getRequiredBaseGraph() {
        Graph base = getBaseGraph();
        if (base == null) {
            throw new JenaException( "This polyadic graph should have a base graph, but none is defined" );
        }
        else {
            return base;
        }
    }
View Full Code Here

                String saveUri = uri.substring(0, suffix) + ".ntx";
                //   System.out.println("Saving to " + saveUri);
                try ( OutputStream w = factory.openOutput(saveUri) ) {
                    m1.write(w, "N-TRIPLE");
                } catch (IOException e) {
                    throw new JenaException( e );
                }
            }
        }
View Full Code Here

                read(m, new InputStreamReader(conn.getInputStream(),
                        encoding), url);
        } catch (FileNotFoundException e) {
            throw new DoesNotExistException(url);
        } catch (IOException e) {
            throw new JenaException(e);
        }
    }
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.shared.JenaException

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.