Class UrlConnectionException

  • All Implemented Interfaces:
    java.io.Serializable

    public class UrlConnectionException
    extends java.lang.RuntimeException
    Used when HTTP requests return a bad response, with troubleshooting info.

    This class displays lots of helpful troubleshooting information.

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      UrlConnectionException​(java.lang.String message, java.net.HttpURLConnection connection)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMessage()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, 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

      • UrlConnectionException

        public UrlConnectionException​(java.lang.String message,
                                      java.net.HttpURLConnection connection)
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable