parent
c4566b07e2
commit
e9406b88e9
@ -1,7 +1,19 @@
|
|||||||
package messagelog
|
package messagelog
|
||||||
|
|
||||||
|
import "fmt"
|
||||||
|
|
||||||
type ErrInvalidMessage struct {
|
type ErrInvalidMessage struct {
|
||||||
|
message string
|
||||||
|
}
|
||||||
|
|
||||||
|
func (err *ErrInvalidMessage) Error() string {
|
||||||
|
return fmt.Sprintf("invalid message format: %s", err.message)
|
||||||
}
|
}
|
||||||
|
|
||||||
type ErrTopicNotFound struct {
|
type ErrTopicNotFound struct {
|
||||||
|
topic string
|
||||||
|
}
|
||||||
|
|
||||||
|
func (err *ErrTopicNotFound) Error() string {
|
||||||
|
return fmt.Sprintf("topic `%s` not found", err.topic)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in new issue