mirror of
https://github.com/daeuniverse/dae.git
synced 2025-01-09 06:47:04 +07:00
22 lines
414 B
Go
22 lines
414 B
Go
|
/*
|
||
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||
|
* Copyright (c) since 2023, v2rayA Organization <team@v2raya.org>
|
||
|
*/
|
||
|
|
||
|
package sniffing
|
||
|
|
||
|
import (
|
||
|
"errors"
|
||
|
"fmt"
|
||
|
)
|
||
|
|
||
|
var (
|
||
|
Error = fmt.Errorf("sniffing error")
|
||
|
NotApplicableError = fmt.Errorf("%w: not applicable", Error)
|
||
|
NotFoundError = fmt.Errorf("%w: not found", Error)
|
||
|
)
|
||
|
|
||
|
func IsSniffingError(err error) bool {
|
||
|
return errors.Is(err, Error)
|
||
|
}
|