Package java.lang

Examples of java.lang.IllegalStateException


      {
        _theTransaction.rollback();
      }
      catch (org.omg.CosTransactions.WrongTransaction e1)
      {
        throw new IllegalStateException(
            jtaLogger.loggerI18N.getString("com.arjuna.ats.internal.jta.transaction.jts.wrongstatetx"));
      }
      catch (org.omg.CORBA.NO_PERMISSION e2)
      {
        throw new SecurityException();
      }
      catch (INVALID_TRANSACTION e3)
      {
        throw new IllegalStateException(
            jtaLogger.loggerI18N.getString("com.arjuna.ats.internal.jta.transaction.jts.invalidtx2"));
      }
      catch (NoTransaction e4)
      {
        throw new IllegalStateException(
            jtaLogger.loggerI18N.getString("com.arjuna.ats.internal.jta.transaction.jts.notx"));
      }
      catch (org.omg.CORBA.SystemException e5)
      {
        throw new javax.transaction.SystemException();
      }
      finally
      {
        TransactionImple.removeTransaction(this);
      }
    }
    else
      throw new IllegalStateException(
          jtaLogger.loggerI18N.getString("com.arjuna.ats.internal.jta.transaction.jts.inactivetx"));
  }
View Full Code Here


            final Record previous = _current.getPrevious();
            _collection.delete(_current);
            _current = null;
            _next = previous.getNext();
        } else {
            throw new IllegalStateException();
        }
    }
View Full Code Here

     * @return <code>this</code>
     * @see    XMLStreamWriterImpl#setOutput(OutputStream)
     */
    public XMLObjectWriter setOutput(OutputStream out) throws XMLStreamException {
        if ((_outputStream != null) || (_writer != null))
            throw new IllegalStateException("Writer not closed or reset");
        _xml._writer.setOutput(out);
        _outputStream = out;
        _xml._writer.writeStartDocument();
        return this;
    }
View Full Code Here

     * @return <code>this</code>
     * @see    XMLStreamWriterImpl#setOutput(OutputStream, String)
     */
    public XMLObjectWriter setOutput(OutputStream out, String encoding) throws XMLStreamException {
        if ((_outputStream != null) || (_writer != null))
            throw new IllegalStateException("Writer not closed or reset");
        _xml._writer.setOutput(out, encoding);
        _outputStream = out;
        _xml._writer.writeStartDocument();
        return this;
    }
View Full Code Here

     * @return <code>this</code>
     * @see    XMLStreamWriterImpl#setOutput(Writer)
     */
    public XMLObjectWriter setOutput(Writer out) throws XMLStreamException {
        if ((_outputStream != null) || (_writer != null))
            throw new IllegalStateException("Writer not closed or reset");
        _xml._writer.setOutput(out);
        _writer = out;
        _xml._writer.writeStartDocument();
        return this;
    }
View Full Code Here

     * @return <code>this</code>
     * @see    XMLStreamReaderImpl#setInput(InputStream)
     */
    public XMLObjectReader setInput(InputStream in) throws XMLStreamException {
        if ((_inputStream != null) || (_reader != null))
            throw new IllegalStateException("Reader not closed or reset");
        _xml._reader.setInput(in);
        _inputStream = in;
        return this;
    }
View Full Code Here

     * @see    XMLStreamReaderImpl#setInput(InputStream, String)
     */
    public XMLObjectReader setInput(InputStream in, String encoding)
            throws XMLStreamException {
        if ((_inputStream != null) || (_reader != null))
            throw new IllegalStateException("Reader not closed or reset");
        _xml._reader.setInput(in, encoding);
        _inputStream = in;
        return this;
    }
View Full Code Here

     * @return <code>this</code>
     * @see    XMLStreamReaderImpl#setInput(Reader)
     */
    public XMLObjectReader setInput(Reader in) throws XMLStreamException {
        if ((_inputStream != null) || (_reader != null))
            throw new IllegalStateException("Reader not closed or reset");
        _xml._reader.setInput(in);
        _reader = in;
        return this;
    }
View Full Code Here

     * @throws IllegalStateException if this writer is being reused and
     *         it has not been {@link #close closed} or {@link #reset reset}.
     */
    public AppendableWriter setOutput(Appendable output) {
        if (_output != null)
            throw new IllegalStateException("Writer not closed or reset");
        _output = output;
        return this;
    }
View Full Code Here

     * @throws IllegalStateException if this writer is being reused and
     *         it has not been {@link #close closed} or {@link #reset reset}.
     */
    public UTF8ByteBufferWriter setOutput(ByteBuffer byteBuffer) {
        if (_byteBuffer != null)
            throw new IllegalStateException("Writer not closed or reset");
        _byteBuffer = byteBuffer;
        return this;
    }
View Full Code Here

TOP

Related Classes of java.lang.IllegalStateException

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.