Implemented error messages
This commit is contained in:
parent
423526e567
commit
e3b26c79f4
16 changed files with 362 additions and 60 deletions
11
src/errors/Base.go
Normal file
11
src/errors/Base.go
Normal file
|
@ -0,0 +1,11 @@
|
|||
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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue