15 lines
231 B
Go
15 lines
231 B
Go
package errors
|
|
|
|
type ReadFileError struct {
|
|
msg string
|
|
}
|
|
|
|
func NewReadFileError(msg string) *ReadFileError {
|
|
return &ReadFileError{
|
|
msg: msg,
|
|
}
|
|
}
|
|
|
|
func (e *ReadFileError) Error() string {
|
|
return "Read file error: " + e.msg
|
|
}
|