yoink-go initial commit
This commit is contained in:
19
comic/error.go
Normal file
19
comic/error.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package comic
|
||||
|
||||
type ImageParseError struct {
|
||||
Message string
|
||||
Code int
|
||||
}
|
||||
|
||||
type ComicDownloadError struct {
|
||||
Message string
|
||||
Code int
|
||||
}
|
||||
|
||||
func (i ImageParseError) Error() string {
|
||||
return i.Message
|
||||
}
|
||||
|
||||
func (c ComicDownloadError) Error() string {
|
||||
return c.Message
|
||||
}
|
||||
Reference in New Issue
Block a user