public class ProtocolException extends IOException:
Raised when an HTTP or URL protocol rule is violated.
import klyn.net
try URL("ftp://example.com").toHttpRequest()
catch err as ProtocolException:
print(err.message)| Modifier and Type | Member | Description |
|---|---|---|
| public | ProtocolExceptionProtocolException(message as String = "Protocol error"): |
Creates a protocol exception. |