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)

Inherited Properties
property Inherited Properties from Exception: message
property Inherited Properties from Object: type
Constructors

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

Inherited Methods
method Inherited Methods from Exception: toString
method Inherited Methods from Object: deepCopy, fromJson, toDict, toJson, toString, toXml