org.apache.jmeter.protocol.tcp.sampler

## Class ReadException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - org.apache.jmeter.protocol.tcp.sampler.ReadException

- All Implemented Interfaces:
    java.io.Serializable

      public class ReadException
      extends java.lang.Exception

  Exception that contains partial response (Text read until exception occurred)
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ReadException()` Deprecated. For use by test code only (serialisation tests)
    `ReadException(java.lang.String message, java.lang.Throwable cause, java.lang.String partialResponse)` Constructor

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `getPartialResponse()`

    - ### Methods inherited from class java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### ReadException

          @Deprecated
          public ReadException()

      Deprecated. For use by test code only (serialisation tests)

    - #### ReadException

          public ReadException(java.lang.String message,
                               java.lang.Throwable cause,
                               java.lang.String partialResponse)

      Constructor
      Parameters:
        `message` - Message
        `cause` - Source cause
        `partialResponse` - Text read until error occurred

  - ### Method Detail

    - #### getPartialResponse

          public java.lang.String getPartialResponse()

      Returns:
        the partialResponse Text read until error occurred

Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.