mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-02-13 08:32:47 +00:00
18 lines
567 B
Go
18 lines
567 B
Go
package g
|
|
|
|
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)
|
|
}
|