ProtocolException
class in package klyn.net

    public class ProtocolException extends IOException:

Object
└ Exception
└ IOException
└ ProtocolException

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)

Properties inherited from Exception: message
Properties inherited from Object: type
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | ProtocolException `ProtocolException(message as String = "Protocol error"):` | Creates a protocol exception.

Methods inherited from Exception: toString
Methods inherited from Object: fromJson, toDict, toJson, toString, toXml