1234567891011121314151617 |
- package utils
- import "strconv"
- // EscapeError Escape Error
- type EscapeError string
- func (e EscapeError) Error() string {
- return "invalid URL escape " + strconv.Quote(string(e))
- }
- // InvalidHostError Invalid Host Error
- type InvalidHostError string
- func (e InvalidHostError) Error() string {
- return "invalid character " + strconv.Quote(string(e)) + " in host name"
- }
|