ProtocolException
classin packageklyn.net
public class ProtocolException extends 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
propertyInherited Properties from Exception: message
propertyInherited Properties from Object: type
Constructors
Modifier and Type Member Description
public ProtocolException
ProtocolException(message as String = "Protocol error"):
Creates a protocol exception.
Inherited Methods
methodInherited Methods from Exception: toString
methodInherited Methods from Object: deepCopy, fromJson, toDict, toJson, toString, toXml