test_class.declarator: ERROR_MESSAGE = "ExpectedErrorMessage"
test_class.modifier: private final
test_class.original_string: private final String ERROR_MESSAGE = "ExpectedErrorMessage";
test_class.type: String
test_class.var_name: ERROR_MESSAGE
test_class.declarator: CAUSE_MESSAGE = "ExpectedCauseMessage"
test_class.modifier: private final
test_class.original_string: private final String CAUSE_MESSAGE = "ExpectedCauseMessage";
test_class.type: String
test_class.var_name: CAUSE_MESSAGE
test_class.declarator: NO_MESSAGE_CAUSE = new IOException()
test_class.modifier: private final
test_class.original_string: private final IOException NO_MESSAGE_CAUSE = new IOException();
test_class.type: IOException
test_class.var_name: NO_MESSAGE_CAUSE
test_class.declarator: EMPTY_MESSAGE_CAUSE = new IOException("")
test_class.modifier: private final
test_class.original_string: private final IOException EMPTY_MESSAGE_CAUSE = new IOException("");
test_class.type: IOException
test_class.var_name: EMPTY_MESSAGE_CAUSE
test_class.file: pooled-jms/src/test/java/org/messaginghub/pooled/jms/util/JMSExceptionSupportTest.java
test_class.identifier: JMSExceptionSupportTest
test_case.body: @Test(expected = MessageNotWriteableRuntimeException.class)
      public void testConvertsMessageNotWriteableExceptionToMessageNotWriteableRuntimeException() {
          throw JMSExceptionSupport.createRuntimeException(new MessageNotWriteableException("error"));
      }
test_case.class_method_signature: JMSExceptionSupportTest.testConvertsMessageNotWriteableExceptionToMessageNotWriteableRuntimeException()
test_case.full_signature: @Test(expected = MessageNotWriteableRuntimeException.class) public void testConvertsMessageNotWriteableExceptionToMessageNotWriteableRuntimeException()
test_case.identifier: testConvertsMessageNotWriteableExceptionToMessageNotWriteableRuntimeException
test_case.invocations: createRuntimeException
test_case.modifiers: @Test(expected = MessageNotWriteableRuntimeException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testConvertsMessageNotWriteableExceptionToMessageNotWriteableRuntimeException()
focal_class.file: pooled-jms/src/main/java/org/messaginghub/pooled/jms/util/JMSExceptionSupport.java
focal_class.identifier: JMSExceptionSupport
focal_class.class_method_signature: JMSExceptionSupport.create(String message, Throwable cause)
focal_class.full_signature: public static JMSException create(String message, Throwable cause)
focal_class.identifier: create
focal_class.modifiers: public static
focal_class.parameters: (String message, Throwable cause)
focal_class.return: JMSException
focal_class.signature: JMSException create(String message, Throwable cause)
focal_class.class_method_signature: JMSExceptionSupport.create(Throwable cause)
focal_class.full_signature: public static JMSException create(Throwable cause)
focal_class.identifier: create
focal_class.modifiers: public static
focal_class.parameters: (Throwable cause)
focal_class.return: JMSException
focal_class.signature: JMSException create(Throwable cause)
focal_class.class_method_signature: JMSExceptionSupport.createMessageEOFException(Throwable cause)
focal_class.full_signature: public static MessageEOFException createMessageEOFException(Throwable cause)
focal_class.identifier: createMessageEOFException
focal_class.modifiers: public static
focal_class.parameters: (Throwable cause)
focal_class.return: MessageEOFException
focal_class.signature: MessageEOFException createMessageEOFException(Throwable cause)
focal_class.class_method_signature: JMSExceptionSupport.createMessageFormatException(Throwable cause)
focal_class.full_signature: public static MessageFormatException createMessageFormatException(Throwable cause)
focal_class.identifier: createMessageFormatException
focal_class.modifiers: public static
focal_class.parameters: (Throwable cause)
focal_class.return: MessageFormatException
focal_class.signature: MessageFormatException createMessageFormatException(Throwable cause)
focal_class.class_method_signature: JMSExceptionSupport.createRuntimeException(Exception exception)
focal_class.full_signature: public static JMSRuntimeException createRuntimeException(Exception exception)
focal_class.identifier: createRuntimeException
focal_class.modifiers: public static
focal_class.parameters: (Exception exception)
focal_class.return: JMSRuntimeException
focal_class.signature: JMSRuntimeException createRuntimeException(Exception exception)
focal_method.body: public static JMSRuntimeException createRuntimeException(Exception exception) {
          JMSRuntimeException result = null;
          JMSException source = null;
  
          if (!(exception instanceof JMSException)) {
              throw new JMSRuntimeException(exception.getMessage(), null, exception);
          } else {
              source = (JMSException) exception;
          }
  
          if (source instanceof IllegalStateException) {
              result = new IllegalStateRuntimeException(source.getMessage(), source.getErrorCode(), source);
          } else if (source instanceof InvalidClientIDException) {
              result = new InvalidClientIDRuntimeException(source.getMessage(), source.getErrorCode(), source);
          } else if (source instanceof InvalidDestinationException) {
              result = new InvalidDestinationRuntimeException(source.getMessage(), source.getErrorCode(), source);
          } else if (source instanceof InvalidSelectorException) {
              result = new InvalidSelectorRuntimeException(source.getMessage(), source.getErrorCode(), source);
          } else if (source instanceof JMSSecurityException) {
              result = new JMSSecurityRuntimeException(source.getMessage(), source.getErrorCode(), source);
          } else if (source instanceof MessageFormatException) {
              result = new MessageFormatRuntimeException(source.getMessage(), source.getErrorCode(), source);
          } else if (source instanceof MessageNotWriteableException) {
              result = new MessageNotWriteableRuntimeException(source.getMessage(), source.getErrorCode(), source);
          } else if (source instanceof ResourceAllocationException) {
              result = new ResourceAllocationRuntimeException(source.getMessage(), source.getErrorCode(), source);
          } else if (source instanceof TransactionInProgressException) {
              result = new TransactionInProgressRuntimeException(source.getMessage(), source.getErrorCode(), source);
          } else if (source instanceof TransactionRolledBackException) {
              result = new TransactionRolledBackRuntimeException(source.getMessage(), source.getErrorCode(), source);
          } else {
              result = new JMSRuntimeException(source.getMessage(), source.getErrorCode(), source);
          }
  
          return result;
      }
focal_method.class_method_signature: JMSExceptionSupport.createRuntimeException(Exception exception)
focal_method.full_signature: public static JMSRuntimeException createRuntimeException(Exception exception)
focal_method.identifier: createRuntimeException
focal_method.invocations: getMessage getMessage getErrorCode getMessage getErrorCode getMessage getErrorCode getMessage getErrorCode getMessage getErrorCode getMessage getErrorCode getMessage getErrorCode getMessage getErrorCode getMessage getErrorCode getMessage getErrorCode getMessage getErrorCode
focal_method.modifiers: public static
focal_method.parameters: (Exception exception)
focal_method.return: JMSRuntimeException
focal_method.signature: JMSRuntimeException createRuntimeException(Exception exception)