2024-06-15 20:25:37 +02:00

14 lines
320 B
Go

package errors
import "fmt"
// InvalidInstruction error is created when an instruction is not valid.
type InvalidInstruction struct {
Instruction string
}
// Error generates the string representation.
func (err *InvalidInstruction) Error() string {
return fmt.Sprintf("Invalid instruction '%s'", err.Instruction)
}