envoid/internal/errors/invalid_command.go

14 lines
255 B
Go
Raw Normal View History

package errors
type InvalidCommandError struct {
msg string
}
func (e *InvalidCommandError) Error() string {
return "invalid command. " + e.msg
}
func NewInvalidCommandError(msg string) *InvalidCommandError {
return &InvalidCommandError{msg: msg}
}