13 lines
255 B
Go
13 lines
255 B
Go
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}
|
|
}
|