org.apache.hc.core5.http

## Class MisdirectedRequestException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - org.apache.hc.core5.http.HttpException
      - - org.apache.hc.core5.http.ProtocolException
        - - org.apache.hc.core5.http.MisdirectedRequestException

- All Implemented Interfaces:
    Serializable

      public class MisdirectedRequestException
      extends ProtocolException

  Signals a misdirected request (the server is not authoritative to handle the request).
  Since:
    5.0
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MisdirectedRequestException()` Creates an exception without a detail message.
    `MisdirectedRequestException(String message)` Creates an exception with the specified detail message.

  - ### Method Summary

    - ### 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

    - #### MisdirectedRequestException

          public MisdirectedRequestException()

      Creates an exception without a detail message.

    - #### MisdirectedRequestException

          public MisdirectedRequestException(String message)

      Creates an exception with the specified detail message.
      Parameters:
        `message` - The exception detail message

Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.