2024-11-22 15:29:25 +00:00
|
|
|
package errors
|
|
|
|
|
|
|
|
type InvalidCommandError struct {
|
|
|
|
msg string
|
|
|
|
}
|
|
|
|
|
|
|
|
func (e *InvalidCommandError) Error() string {
|
2024-12-16 18:22:58 +00:00
|
|
|
return "invalid command. " + e.msg
|
2024-11-22 15:29:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func NewInvalidCommandError(msg string) *InvalidCommandError {
|
|
|
|
return &InvalidCommandError{msg: msg}
|
|
|
|
}
|