Standard library / crypto/tls
tls.ECHRejectionError.Error()
Return a diagnostic for rejected Encrypted ClientHello. This synthetic error demonstrates classification only, not a real ECH handshake. Expected stdout: 'true\n'.
Formal Syntax & Structure
go syntaxgo
func (e *ECHRejectionError) Error() stringReturn Value
string
Result of the operation; handle any returned error before using other results.
Working Example
Example Snippetgo
package main
import ( "crypto/tls" "fmt")
func main() { e := &tls.ECHRejectionError{}; fmt.Println(len(e.Error()) > 0) }
func must[T any](v T, e error) T { if e != nil { panic(e) } return v}func check(e error) { if e != nil { panic(e) }}