12 lines
218 B
Go
Raw Normal View History

2024-06-13 12:13:32 +02:00
package errors
// Base is the base class for errors that have no parameters.
type Base struct {
Message string
}
// Error generates the string representation.
func (err *Base) Error() string {
return err.Message
}