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
Exception thrown when URL cannot be built because of syntax error.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUrlException
(String scheme, String host, int port, String path, Throwable cause) Create the exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UrlException
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
The scheme used to build malformed URL.- Returns:
- URL scheme.
-
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
The path used to build malformed URL.- Returns:
- URL path.
-