12 lines
218 B
Go
12 lines
218 B
Go
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
|
|
}
|