mirror of
https://github.com/bestnite/sub2clash.git
synced 2025-06-16 20:23:19 +08:00
16 lines
420 B
Go
16 lines
420 B
Go
package parser
|
|
|
|
type ParseErrorType string
|
|
|
|
const (
|
|
ErrInvalidPrefix ParseErrorType = "invalid url prefix"
|
|
ErrInvalidStruct ParseErrorType = "invalid struct"
|
|
ErrInvalidPort ParseErrorType = "invalid port number"
|
|
ErrCannotParseParams ParseErrorType = "cannot parse query parameters"
|
|
ErrInvalidBase64 ParseErrorType = "invalid base64"
|
|
)
|
|
|
|
func (e ParseErrorType) Error() string {
|
|
return string(e)
|
|
}
|