14 lines
204 B
Go
14 lines
204 B
Go
package errors
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
type ErrFailed2GetNatRules struct {
|
|
Reason string
|
|
}
|
|
|
|
func (err ErrFailed2GetNatRules) Error() string {
|
|
return fmt.Sprintf("Failed to get NAT Rules: %s", err.Reason)
|
|
}
|