Class UrlException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.github.mjeanroy.junit.servers.exceptions.UrlException
All Implemented Interfaces:
Serializable

public class UrlException extends RuntimeException
Exception thrown when URL cannot be built because of syntax error.
See Also:
  • Constructor Details

    • UrlException

      public UrlException(String scheme, String host, int port, String path, Throwable cause)
      Create the exception.
      Parameters:
      scheme - HTTP Url scheme.
      host - HTTP Url host.
      port - HTTP Url port.
      path - HTTP Url path.
      cause - Original cause.
  • Method Details

    • getScheme

      public String getScheme()
      The scheme used to build malformed URL.
      Returns:
      URL scheme.
    • getHost

      public String getHost()
      The host used to build malformed URL.
      Returns:
      URL host.
    • getPort

      public int getPort()
      The port used to build malformed URL.
      Returns:
      URL port.
    • getPath

      public String getPath()
      The path used to build malformed URL.
      Returns:
      URL path.