Added authorization
This commit is contained in:
parent
c3c3d65d32
commit
b96dd39795
50 changed files with 685 additions and 410 deletions
15
internal/application/errors/read_file_error.go
Normal file
15
internal/application/errors/read_file_error.go
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue