Package org.openjena.riot

Examples of org.openjena.riot.RiotParseException


        } catch (AtlasException ex)
        {
            if ( ex.getCause() != null )
            {
                if ( ex.getCause().getClass() == java.nio.charset.MalformedInputException.class )
                    throw new RiotParseException("Bad character encoding", reader.getLineNum(), reader.getColNum()) ;
                throw new RiotParseException("Bad input stream ["+ex.getCause()+"]", reader.getLineNum(), reader.getColNum()) ;
            }
            throw new RiotParseException("Bad input stream", reader.getLineNum(), reader.getColNum()) ;
        }
    }   
View Full Code Here


        exception(message, reader.getLineNum(), reader.getColNum()) ;
    }

    private static void exception(String message, long line, long col)
    {
        throw new RiotParseException(message, line, col) ;
    }
View Full Code Here

            throw ex ;
        }
        catch (AtlasException ex)
        {
            // Bad I/O
            RiotParseException ex2 = new RiotParseException(ex.getMessage(), -1, -1) ;
            raiseException(ex2) ;
            throw ex2 ;
        }
    }
View Full Code Here

            exceptionDirect(String.format(msg, args), -1, -1) ;
    }

    protected final void exceptionDirect(String msg, long line, long col)
    {
        raiseException(new RiotParseException(msg, line, col)) ;
    }
View Full Code Here

            }
            return true ;
        } catch (AtlasException ex)
        {
            if ( ex.getCause().getClass() == java.nio.charset.MalformedInputException.class )
                throw new RiotParseException("Bad character encoding", inputStream.getLineNum(), inputStream.getColNum()) ;
            throw new RiotParseException("Bad input stream", inputStream.getLineNum(), inputStream.getColNum()) ;
        }
    }
View Full Code Here

        exception(message, inputStream.getLineNum(), inputStream.getColNum()) ;
    }

    private static void exception(String message, long line, long col)
    {
        throw new RiotParseException(message, line, col) ;
    }
View Full Code Here

TOP

Related Classes of org.openjena.riot.RiotParseException

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.