Create a protocol error.
(message: impl Into<String>)
| 248 | |
| 249 | /// Create a protocol error. |
| 250 | pub fn protocol(message: impl Into<String>) -> Self { |
| 251 | Self::ProtocolError { |
| 252 | message: message.into(), |
| 253 | } |
| 254 | } |
| 255 | |
| 256 | /// Create an HTTP error. |
| 257 | pub fn http(status: u16, message: impl Into<String>) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected