mirror of
https://github.com/pterodactyl/wings.git
synced 2026-04-11 22:03:09 -05:00
20 lines
294 B
Go
20 lines
294 B
Go
package installer
|
|
|
|
type validationError struct {
|
|
msg string
|
|
}
|
|
|
|
func (e *validationError) Error() string {
|
|
return e.msg
|
|
}
|
|
|
|
func IsValidationError(err error) bool {
|
|
_, ok := err.(*validationError)
|
|
|
|
return ok
|
|
}
|
|
|
|
func NewValidationError(msg string) error {
|
|
return &validationError{msg: msg}
|
|
}
|