Refactored code structure
This commit is contained in:
@ -1,11 +0,0 @@
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user