Files
phishingclub/backend/vendor/github.com/enetx/g/fs/errors.go
T
RonniSkansing 2028391c3c vendor backend
Signed-off-by: RonniSkansing <rskansing@gmail.com>
2026-09-16 23:17:35 +02:00

18 lines
568 B
Go

package fs
import "fmt"
// ErrFileNotExist represents an error for when a file does not exist.
type ErrFileNotExist struct{ Msg string }
// Error returns the error message for ErrFileNotExist.
func (e *ErrFileNotExist) Error() string { return fmt.Sprintf("no such file: %s", e.Msg) }
// ErrFileClosed represents an error for when a file is already closed.
type ErrFileClosed struct{ Msg string }
// Error returns the error message for ErrFileClosed.
func (e *ErrFileClosed) Error() string {
return fmt.Sprintf("%s: file is already closed and unlocked", e.Msg)
}