Package javax.jms

Examples of javax.jms.JMSException


   public void writeChar(char value) throws JMSException {
      setterCheck("writeChar");
      try {
         this.dataOs.writeChar(value);
      } catch (IOException ex) {
         throw new JMSException(ME + ".writeChar: " + ex.getMessage(),
               ErrorCode.USER_ILLEGALARGUMENT.getErrorCode());
      }
   }
View Full Code Here


   public void writeInt(int value) throws JMSException {
      setterCheck("writeInt");
      try {
         this.dataOs.writeInt(value);
      } catch (IOException ex) {
         throw new JMSException(ME + ".writeInt: " + ex.getMessage(),
               ErrorCode.USER_ILLEGALARGUMENT.getErrorCode());
      }
   }
View Full Code Here

   public void writeLong(long value) throws JMSException {
      setterCheck("writeLong");
      try {
         this.dataOs.writeLong(value);
      } catch (IOException ex) {
         throw new JMSException(ME + ".writeLong: " + ex.getMessage(),
               ErrorCode.USER_ILLEGALARGUMENT.getErrorCode());
      }
   }
View Full Code Here

   public void writeFloat(float value) throws JMSException {
      setterCheck("writeFloat");
      try {
         this.dataOs.writeFloat(value);
      } catch (IOException ex) {
         throw new JMSException(ME + ".writeFloat: " + ex.getMessage(),
               ErrorCode.USER_ILLEGALARGUMENT.getErrorCode());
      }
   }
View Full Code Here

   public void writeDouble(double value) throws JMSException {
      setterCheck("writeDouble");
      try {
         this.dataOs.writeDouble(value);
      } catch (IOException ex) {
         throw new JMSException(ME + ".writeDouble: " + ex.getMessage(),
               ErrorCode.USER_ILLEGALARGUMENT.getErrorCode());
      }
   }
View Full Code Here

      if (value == null)
         throw new NullPointerException(ME + ".writeUTF");
      try {
         this.dataOs.writeUTF(value);
      } catch (IOException ex) {
         throw new JMSException(ME + ".writeUTF: " + ex.getMessage(),
               ErrorCode.USER_ILLEGALARGUMENT.getErrorCode());
      }
   }
View Full Code Here

      if (value == null)
         throw new NullPointerException(ME + ".writeString");
      try {
         this.dataOs.writeUTF(value);
      } catch (IOException ex) {
         throw new JMSException(ME + ".writeString: " + ex.getMessage(),
               ErrorCode.USER_ILLEGALARGUMENT.getErrorCode());
      }
   }
View Full Code Here

         throw new NullPointerException(ME + ".writeBytes");
      try {
         this.dataOs.write(value, offset, length);
      }
      catch (IOException ex) {
         throw new JMSException(ME + ".writeBytes: " + ex.getMessage(),
               ErrorCode.USER_ILLEGALARGUMENT.getErrorCode());
      }
   }
View Full Code Here

         byte[] valAsBytes = tmp.toByteArray();
         this.dataOs.writeInt(valAsBytes.length);
         this.dataOs.write(valAsBytes);
      }
      catch (IOException ex) {
         throw new JMSException(ME + ".writeObject: " + ex.getMessage(),
               ErrorCode.USER_ILLEGALARGUMENT.getErrorCode());
      }
   }
View Full Code Here

     
      ClientTransaction tx = getTxInternal(xid);
     
      if (tx == null)
      {
         throw new JMSException("There is no transaction with id " + xid);
      }
     
      tx.addAck(sessionId, ackInfo);
   }
View Full Code Here

TOP

Related Classes of javax.jms.JMSException

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.